feat(validator onboarding): implement back button

This commit is contained in:
Hristo Nedelkov 2024-02-07 14:17:01 +02:00 committed by Emil Ivanichkov
parent f86e5d77f4
commit e80beda83c
1 changed files with 3 additions and 2 deletions

View File

@ -145,7 +145,8 @@ const ContinueButton = () => {
<XStack <XStack
style={{ style={{
width: '100%', width: '100%',
justifyContent: isActivationValScreen||true ? 'space-between' : 'end', justifyContent:
isActivationValScreen || true ? 'space-between' : 'end',
alignItems: 'center', alignItems: 'center',
zIndex: 1000, zIndex: 1000,
marginTop: '12px', marginTop: '12px',
@ -160,7 +161,7 @@ const ContinueButton = () => {
style={{ fontWeight: 'bold', zIndex: 999 }} style={{ fontWeight: 'bold', zIndex: 999 }}
/> />
)} )}
<BackButton buttonState="pressed" prevPage="Gosho"></BackButton> <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>