diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index 2d09761e..21b6e7b2 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -10,14 +10,24 @@ import Activation from './Activation/Activation' import './layoutGradient.css' import ValidatorBoxWrapper from './ValidatorBoxWrapper/ValidatorBoxWrapper' import { Button } from '@status-im/components' +import { useNavigate } from 'react-router-dom' const ValidatorOnboarding = () => { const [activeStep, setActiveStep] = useState(0) + const navigate = useNavigate() const changeActiveStep = (step: number) => { setActiveStep(step) } + const continueHandler = () => { + if (activeStep < 4) { + setActiveStep(activeStep + 1) + } else { + navigate('/') + } + } + return (