mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
feat: move components to be abstract
This commit is contained in:
parent
f71d73c96a
commit
f63d9c5798
@ -1,4 +1,4 @@
|
||||
import { YStack } from 'tamagui'
|
||||
import { Stack, YStack } from 'tamagui'
|
||||
import FormStepper from './FormStepper/FormStepper'
|
||||
import Titles from '../../components/General/Titles'
|
||||
import { useState } from 'react'
|
||||
@ -8,6 +8,8 @@ import Advicsories from './Advicsories/Advicsories'
|
||||
import ValidatorSetup from './ValidatorSetup/ValidatorSetup'
|
||||
import Activation from './Activation/Activation'
|
||||
import './layoutGradient.css'
|
||||
import ValidatorBoxWrapper from './ValidatorBoxWrapper/ValidatorBoxWrapper'
|
||||
import { Button } from '@status-im/components'
|
||||
|
||||
const ValidatorOnboarding = () => {
|
||||
const [activeStep, setActiveStep] = useState(0)
|
||||
@ -33,11 +35,16 @@ const ValidatorOnboarding = () => {
|
||||
subtitle="Earn Rewards for securing the Ethereum Network"
|
||||
/>
|
||||
<FormStepper activeStep={activeStep} changeActiveStep={changeActiveStep} />
|
||||
{activeStep === 0 && <Overview />}
|
||||
{activeStep === 1 && <Advicsories />}
|
||||
{activeStep === 2 && <ValidatorSetup />}
|
||||
{activeStep === 3 && <KeyGeneration />}
|
||||
{activeStep === 4 && <Activation />}
|
||||
<ValidatorBoxWrapper>
|
||||
{activeStep === 0 && <Overview />}
|
||||
{activeStep === 1 && <Advicsories />}
|
||||
{activeStep === 2 && <ValidatorSetup />}
|
||||
{activeStep === 3 && <KeyGeneration />}
|
||||
{activeStep === 4 && <Activation />}
|
||||
</ValidatorBoxWrapper>
|
||||
<Stack style={{ alignItems: 'end', width: '100%', marginTop: '16px', zIndex: 999 }}>
|
||||
<Button>Continue</Button>
|
||||
</Stack>
|
||||
</YStack>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user