Add subStepValidatorSetup for Activation
This commit is contained in:
parent
7130a513bd
commit
8a16183a25
|
@ -18,6 +18,7 @@ import ContinueButton from './ContinueButton'
|
||||||
import { setIsCopyPastedPhrase } from '../../redux/ValidatorOnboarding/KeyGeneration/slice'
|
import { setIsCopyPastedPhrase } from '../../redux/ValidatorOnboarding/KeyGeneration/slice'
|
||||||
import { RootState } from '../../redux/store'
|
import { RootState } from '../../redux/store'
|
||||||
import './layoutGradient.css'
|
import './layoutGradient.css'
|
||||||
|
import ActivationValidatorSetup from './ValidatorSetup/ActivationValidatorSetup'
|
||||||
|
|
||||||
const ValidatorOnboarding = () => {
|
const ValidatorOnboarding = () => {
|
||||||
const [activeStep, setActiveStep] = useState(0)
|
const [activeStep, setActiveStep] = useState(0)
|
||||||
|
@ -37,7 +38,7 @@ const ValidatorOnboarding = () => {
|
||||||
const continueHandler = () => {
|
const continueHandler = () => {
|
||||||
if (activeStep === 4 && isConfirmPhraseStage === false) {
|
if (activeStep === 4 && isConfirmPhraseStage === false) {
|
||||||
setIsConfirmPhraseStage(true)
|
setIsConfirmPhraseStage(true)
|
||||||
} else if (activeStep === 3 && subStepValidatorSetup < 2) {
|
} else if (activeStep === 3 && subStepValidatorSetup < 3) {
|
||||||
setSubStepValidatorSetup(subStepValidatorSetup + 1)
|
setSubStepValidatorSetup(subStepValidatorSetup + 1)
|
||||||
} else if (activeStep < 5) {
|
} else if (activeStep < 5) {
|
||||||
setActiveStep(activeStep + 1)
|
setActiveStep(activeStep + 1)
|
||||||
|
@ -78,9 +79,10 @@ const ValidatorOnboarding = () => {
|
||||||
{activeStep === 1 && <Advisories />}
|
{activeStep === 1 && <Advisories />}
|
||||||
{activeStep === 2 && <ClientSetup />}
|
{activeStep === 2 && <ClientSetup />}
|
||||||
|
|
||||||
{activeStep === 3 && subStepValidatorSetup === 0 && <ValidatorSetup />}
|
{activeStep === 3 && subStepValidatorSetup === 0 && <ActivationValidatorSetup />}
|
||||||
{activeStep === 3 && subStepValidatorSetup === 1 && <ValidatorSetupInstall />}
|
{activeStep === 3 && subStepValidatorSetup === 1 && <ValidatorSetupInstall />}
|
||||||
{activeStep === 3 && subStepValidatorSetup === 2 && <ConsensusSelection />}
|
{activeStep === 3 && subStepValidatorSetup === 2 && <ConsensusSelection />}
|
||||||
|
{activeStep === 3 && subStepValidatorSetup === 3 && <ActivationValidatorSetup />}
|
||||||
|
|
||||||
{activeStep === 4 && <KeyGeneration isConfirmPhraseStage={isConfirmPhraseStage} />}
|
{activeStep === 4 && <KeyGeneration isConfirmPhraseStage={isConfirmPhraseStage} />}
|
||||||
{activeStep === 5 && <Activation />}
|
{activeStep === 5 && <Activation />}
|
||||||
|
|
Loading…
Reference in New Issue