Skip to content

Commit

Permalink
fix: image loading lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
jiohjung98 committed Jun 11, 2024
1 parent 665d0c0 commit f542de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/map/BranchInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const BranchInfo: React.FC = () => {
width={500}
height={246}
className="h-[246px] object-cover"
loading="lazy"
/>
<div className="w-[50px] absolute bottom-2 right-2 bg-black bg-opacity-60 text-white px-2 py-1 rounded text-center">
{currentSlide} / {totalSlides}
Expand All @@ -197,6 +198,7 @@ const BranchInfo: React.FC = () => {
width={500}
height={246}
className="h-[246px] object-cover"
loading="lazy"
/>
<div className="w-[50px] absolute bottom-2 right-2 bg-black bg-opacity-60 text-white px-2 py-1 rounded text-center">
{currentSlide} / {totalSlides}
Expand Down

0 comments on commit f542de8

Please sign in to comment.