Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
diogogmatos committed Sep 28, 2023
1 parent f1fa624 commit 24881e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Carousel = ({ children, index, ...options }: Props) => {
);
return () => clearInterval(interval);
}
}, [emblaApi, scroll]);
}, [emblaApi, scroll, index]);

return (
<div
Expand Down
8 changes: 4 additions & 4 deletions components/Hero/PromoGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ const PromoGrid = () => {
<div className="grid w-[516px] grid-cols-2 gap-4 overflow-hidden rounded-tl-[140px] shadow-sm shadow-gray-900/20">
{/* --> 1st Banner */}
<Carousel index={0} loop>
{(PromoGridItems[0] as BannerInfo[]).map((item) => (
<Banner item={item} />
{(PromoGridItems[0] as BannerInfo[]).map((item, index) => (
<Banner item={item} key={index} />
))}
</Carousel>
{/* --> 2nd Banner */}
<Carousel index={1} loop>
{(PromoGridItems[1] as BannerInfo[]).map((item) => (
<Banner item={item} />
{(PromoGridItems[1] as BannerInfo[]).map((item, index) => (
<Banner item={item} key={index} />
))}
</Carousel>
{/* --> Become a Member Banner */}
Expand Down

0 comments on commit 24881e5

Please sign in to comment.