From 24881e592ae79c90f070fa03e5b4c6dca90ab6c3 Mon Sep 17 00:00:00 2001 From: Diogo Matos Date: Thu, 28 Sep 2023 19:48:24 +0100 Subject: [PATCH] lint code --- components/Carousel/Carousel.tsx | 2 +- components/Hero/PromoGrid.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/Carousel/Carousel.tsx b/components/Carousel/Carousel.tsx index d5dd7b0..53b2de7 100644 --- a/components/Carousel/Carousel.tsx +++ b/components/Carousel/Carousel.tsx @@ -24,7 +24,7 @@ const Carousel = ({ children, index, ...options }: Props) => { ); return () => clearInterval(interval); } - }, [emblaApi, scroll]); + }, [emblaApi, scroll, index]); return (
{
{/* --> 1st Banner */} - {(PromoGridItems[0] as BannerInfo[]).map((item) => ( - + {(PromoGridItems[0] as BannerInfo[]).map((item, index) => ( + ))} {/* --> 2nd Banner */} - {(PromoGridItems[1] as BannerInfo[]).map((item) => ( - + {(PromoGridItems[1] as BannerInfo[]).map((item, index) => ( + ))} {/* --> Become a Member Banner */}