From 0ba80804df6be1b67122c2958b546d66b78ffb67 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 24 Aug 2023 10:51:47 +0300 Subject: [PATCH] feat: add state and show only active step --- .../ValidatorOnboarding.tsx | 95 +++++++++++-------- 1 file changed, 53 insertions(+), 42 deletions(-) diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index fd02ac28..f83cdfa7 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -3,8 +3,15 @@ import { Button, Shadow, Text } from '@status-im/components' import FormStepper from './FormStepper' import PageWrapperGradient from '../../components/PageWrappers/PageWrapperGradient' import Titles from '../../components/General/Titles' +import { useState } from 'react' const ValidatorOnboarding = () => { + const [activeStep, setActiveStep] = useState(0) + + const changeActiveStep = (step: number) => { + setActiveStep(step) + } + return ( { titleSize={19} subtitle="Earn Rewards for securing the Ethereum Network" /> - - - - - Overview - + + {activeStep === 0 && ( + <> + + + + Overview + - - Becoming a validator is a big responsibility with important preparation steps. Only - start the deposit process when youre ready. - - - By running a validator, you'll be responsible for securing the network and receive - continuous payouts for actions that help the network reach consensus. - - - Since the successful transition to proof-of-stake via The Merge, Ethereum is fully - secured by proof-of-stake validators. By running a validator, you'll be helping to - secure the Ethereum network. - - -
-
- background -
-
-
- - - + + Becoming a validator is a big responsibility with important preparation steps. + Only start the deposit process when youre ready. + + + By running a validator, you'll be responsible for securing the network and receive + continuous payouts for actions that help the network reach consensus. + + + Since the successful transition to proof-of-stake via The Merge, Ethereum is fully + secured by proof-of-stake validators. By running a validator, you'll be helping to + secure the Ethereum network. + +
+
+
+ background +
+
+
+ + + + + )}
)