disabled temporay auto next item on feature section
This commit is contained in:
parent
d67c82937d
commit
7970c18b3b
@ -136,18 +136,18 @@ export default function Home() {
|
|||||||
|
|
||||||
const [activeFeature, setActiveFeature] = useState(0)
|
const [activeFeature, setActiveFeature] = useState(0)
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
if (activeFeature < 3) {
|
// if (activeFeature < 3) {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
setActiveFeature(activeFeature + 1)
|
// setActiveFeature(activeFeature + 1)
|
||||||
}, 5000)
|
// }, 5000)
|
||||||
}
|
// }
|
||||||
if (activeFeature === 3) {
|
// if (activeFeature === 3) {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
setActiveFeature(0)
|
// setActiveFeature(0)
|
||||||
}, 5000)
|
// }, 5000)
|
||||||
}
|
// }
|
||||||
}, [activeFeature])
|
// }, [activeFeature])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user