From 7970c18b3b4f72a42f8c3265c90e08078ad67238 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 14 Mar 2024 17:40:59 +0700 Subject: [PATCH] disabled temporay auto next item on feature section --- docs/src/pages/index.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index b36dd498b..870cf6097 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -136,18 +136,18 @@ export default function Home() { const [activeFeature, setActiveFeature] = useState(0) - useEffect(() => { - if (activeFeature < 3) { - setTimeout(() => { - setActiveFeature(activeFeature + 1) - }, 5000) - } - if (activeFeature === 3) { - setTimeout(() => { - setActiveFeature(0) - }, 5000) - } - }, [activeFeature]) + // useEffect(() => { + // if (activeFeature < 3) { + // setTimeout(() => { + // setActiveFeature(activeFeature + 1) + // }, 5000) + // } + // if (activeFeature === 3) { + // setTimeout(() => { + // setActiveFeature(0) + // }, 5000) + // } + // }, [activeFeature]) return ( <>