mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
fix: move styles to not prerender
This commit is contained in:
parent
cd2889cff4
commit
9ae769ef6b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user