fix: move styles to not prerender

This commit is contained in:
RadoslavDimchev 2023-08-30 11:29:44 +03:00
parent cd2889cff4
commit 9ae769ef6b

View File

@ -6,9 +6,6 @@ import ActivationCard from './ActivationCard'
import { Link } from 'react-router-dom'
import { ArrowLeftIcon } from '@status-im/icons'
const Activation = () => {
const [showConfetti, setShowConfetti] = useState(true)
const styles = {
confettiContainer: {
position: 'relative' as const,
@ -25,6 +22,9 @@ const Activation = () => {
},
}
const Activation = () => {
const [showConfetti, setShowConfetti] = useState(true)
useEffect(() => {
const timer = setTimeout(() => {
setShowConfetti(false)