feat: main

This commit is contained in:
Nikolaj Frey 2023-06-27 11:28:27 +10:00
parent 50a919011a
commit e386e176fc

View File

@ -28,7 +28,7 @@ export const TextAnimation1 = props => {
const newTextIdx = texts?.indexOf(titleText) + 1 const newTextIdx = texts?.indexOf(titleText) + 1
const newText = texts[newTextIdx] || texts[0] const newText = texts[newTextIdx] || texts[0]
setTitleText(newText) setTitleText(newText)
}, 5000) }, 4000)
return () => clearInterval(interval) return () => clearInterval(interval)
}, [titleText, texts]) }, [titleText, texts])