From d6daf9d84f809417a4199b6f9512f06746c8f967 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Wed, 7 Feb 2024 14:00:11 +0200 Subject: [PATCH] feat(validator onboarding): create `BackButton.tsx` --- .../ValidatorSetup/BackButton.tsx | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx new file mode 100644 index 00000000..3e345076 --- /dev/null +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx @@ -0,0 +1,28 @@ +import { Text } from '@status-im/components' +import { Stack, XStack } from 'tamagui' +import { ArrowLeftIcon } from '@status-im/icons' +import { useState } from 'react' +type BackButtonProps = { + prevPage: string + buttonState: 'disabled' | 'enabled' | 'pressed' +} +const BackButton = ({ prevPage }: BackButtonProps) => { + const [buttonState, setButtonState] = useState('enabled') + + return ( + + + + + {prevPage} + + + ) +} + +export default BackButton