diff --git a/src/Components/Carausel/Carausel.jsx b/src/Components/Carausel/Carausel.jsx index 1704b43..fd5e1bf 100644 --- a/src/Components/Carausel/Carausel.jsx +++ b/src/Components/Carausel/Carausel.jsx @@ -8,12 +8,12 @@ const Carousel = ({ children }) => { const [active, setActive] = useState(0); const count = React.Children.count(children); - useEffect(() => { - const autoplay = setInterval(() => { - setActive((prevActive) => (prevActive + 1) % count); - }, AUTOPLAY_INTERVAL); - return () => clearInterval(autoplay); - }, [count]); + // useEffect(() => { + // const autoplay = setInterval(() => { + // setActive((prevActive) => (prevActive + 1) % count); + // }, AUTOPLAY_INTERVAL); + // return () => clearInterval(autoplay); + // }, [count]); return (