mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-10 10:26:53 +00:00
feat(validator onboarding): update ContinueButton.tsx
This commit is contained in:
parent
f93d68bc36
commit
f2f28ad80e
@ -111,13 +111,14 @@ const ContinueButton = () => {
|
|||||||
const continueHandler = () => {
|
const continueHandler = () => {
|
||||||
let nextPath = STEPPER_PATHS[activeStep] || '/validator-onboarding/'
|
let nextPath = STEPPER_PATHS[activeStep] || '/validator-onboarding/'
|
||||||
|
|
||||||
|
|
||||||
if (activeStep === 7) {
|
if (activeStep === 7) {
|
||||||
nextPath = isConfirmPhraseStage ? '/validator-onboarding/deposit' : '/validator-onboarding/key-generation';
|
nextPath = isConfirmPhraseStage
|
||||||
handleRecoveryMechanism();
|
? '/validator-onboarding/deposit'
|
||||||
|
: '/validator-onboarding/key-generation'
|
||||||
|
handleRecoveryMechanism()
|
||||||
}
|
}
|
||||||
|
|
||||||
navigate(nextPath);
|
navigate(nextPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -128,14 +129,14 @@ const ContinueButton = () => {
|
|||||||
<XStack
|
<XStack
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
justifyContent:
|
justifyContent: 'space-between',
|
||||||
isActivationValScreen || true ? 'space-between' : 'end',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
zIndex: 1000,
|
zIndex: 1000,
|
||||||
marginTop: '12px',
|
marginTop: '12px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{windowSize.width >= 1155 && <CopyPastedRecoveryPhrase />}
|
{windowSize.width >= 1155 && <CopyPastedRecoveryPhrase />}
|
||||||
|
<BackButton prevPageIndex={activeStep}></BackButton>
|
||||||
{isActivationValScreen && (
|
{isActivationValScreen && (
|
||||||
<LinkWithArrow
|
<LinkWithArrow
|
||||||
text="Skip to Dashboard"
|
text="Skip to Dashboard"
|
||||||
@ -144,7 +145,6 @@ const ContinueButton = () => {
|
|||||||
style={{ fontWeight: 'bold', zIndex: 999 }}
|
style={{ fontWeight: 'bold', zIndex: 999 }}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<BackButton prevPageIndex={activeStep}></BackButton>
|
|
||||||
<Button onPress={continueHandler} size={40} disabled={isDisabled}>
|
<Button onPress={continueHandler} size={40} disabled={isDisabled}>
|
||||||
{activeStep < 6 ? 'Continue' : 'Continue to Dashboard'}
|
{activeStep < 6 ? 'Continue' : 'Continue to Dashboard'}
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user