This commit is contained in:
Hristo Nedelkov 2023-10-09 15:15:16 +03:00
parent bad20a60e5
commit b290e62a59
3 changed files with 7 additions and 4 deletions

View File

@ -19,7 +19,6 @@ const ClientSetup = ({ setIsValidatorSet }: ClientSetupProps) => {
const numberValue = Number(value)
if (!isNaN(numberValue)) {
setValidatorCount(numberValue)
}
}

View File

@ -19,7 +19,7 @@ const ContinueButton = ({
activeStep,
isConfirmPhraseStage,
subStepValidatorSetup,
isValidatorSet
isValidatorSet,
}: ContinueButton) => {
const { isCopyPastedPhrase, words, validWords } = useSelector(
(state: RootState) => state.keyGeneration,
@ -70,7 +70,11 @@ const ContinueButton = ({
alignItems: 'end',
}}
>
<Button onPress={continueHandler} size={40} disabled={isDisabled() || (isValidatorSet === false && activeStep === 3)}>
<Button
onPress={continueHandler}
size={40}
disabled={isDisabled() || (isValidatorSet === false && activeStep === 3)}
>
{activeStep < 6 ? 'Continue' : 'Continue to Dashboard'}
</Button>
</Stack>

View File

@ -129,7 +129,7 @@ const ValidatorOnboarding = () => {
{activeStep === 2 && subStepValidatorSetup === 1 && <ValidatorSetupInstall />}
{activeStep === 2 && subStepValidatorSetup === 2 && <ConsensusSelection />}
{activeStep === 2 && subStepValidatorSetup === 3 && <ActivationValidatorSetup />}
{activeStep === 3 && <ClientSetup setIsValidatorSet={setIsValidatorSet}/>}
{activeStep === 3 && <ClientSetup setIsValidatorSet={setIsValidatorSet} />}
{activeStep === 4 && <KeyGeneration isConfirmPhraseStage={isConfirmPhraseStage} />}
{activeStep === 5 && <Deposit />}