From b1d1a523eeae58b59ce173d6675731807dd556c6 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Wed, 16 Oct 2024 22:39:17 -0600 Subject: [PATCH] Speed up image rotation --- client/src/components/ImageCarousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ImageCarousel.tsx b/client/src/components/ImageCarousel.tsx index 19cbd4b..74f8af1 100644 --- a/client/src/components/ImageCarousel.tsx +++ b/client/src/components/ImageCarousel.tsx @@ -9,7 +9,7 @@ const ImageCarousel: React.FC = () => { useEffect(() => { const timer = setInterval(() => { setCurrentIndex((prevIndex) => (prevIndex + 1) % images.length); - }, 10000); + }, 5000); return () => clearInterval(timer); }, []);