From 7130a513bdcbe0569cc9bac11f2138679edcd6f8 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Thu, 7 Sep 2023 12:55:34 +0300 Subject: [PATCH] Update ActivationValidatorSetup.tsx --- .../ActivationValidatorSetup.tsx | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ActivationValidatorSetup.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ActivationValidatorSetup.tsx index 70487877..0a99698b 100644 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ActivationValidatorSetup.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/ActivationValidatorSetup.tsx @@ -1,4 +1,87 @@ +import { useState, useEffect } from 'react' +import { XStack, Stack, YStack } from 'tamagui' +import { Text } from '@status-im/components' +import Confetti from 'react-confetti' +import LinkWithArrow from '../../../components/General/LinkWithArrow' +import ActivationCard from '../Activation/ActivationCard' + +const styles = { + confettiContainer: { + position: 'relative' as const, + width: '100%', + height: '100%', + justifyContent: 'fit-content' + }, + confettiCanvas: { + position: 'absolute' as const, + top: 0, + left: 0, + width: '100%', + height: '100%', + zIndex: 0, + }, +} + +const ActivationValidatorSetup = () => { + const [showConfetti, setShowConfetti] = useState(true) + + useEffect(() => { + const timer = setTimeout(() => { + setShowConfetti(false) + }, 10000) + + return () => { + clearTimeout(timer) + } + }, []) + + return ( + + {showConfetti && } + + + + Activation + + + Congratulations! You have successfully setup your Execution and Consensus clients and are currently syncing your nodes. You need to be sufficiently synced prior to setting up your validators and making a deposit. + + + + + + + + + + + + + + + + ) +} + +export default ActivationValidatorSetup