From d7badb78e07bbb2d926274564c65bb057066e2d9 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 26 Jan 2024 09:58:38 +0200 Subject: [PATCH] feat: move pasted notification above the btn for small screen --- .../ValidatorOnboarding/ContinueButton.tsx | 79 ++++++++++++------- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/src/pages/ValidatorOnboarding/ContinueButton.tsx b/src/pages/ValidatorOnboarding/ContinueButton.tsx index f865972a..b0f8fee9 100644 --- a/src/pages/ValidatorOnboarding/ContinueButton.tsx +++ b/src/pages/ValidatorOnboarding/ContinueButton.tsx @@ -1,4 +1,4 @@ -import { Stack, XStack } from 'tamagui' +import { Stack, XStack, YStack } from 'tamagui' import { Button, InformationBox } from '@status-im/components' import { CloseCircleIcon } from '@status-im/icons' @@ -138,21 +138,57 @@ const ContinueButton = () => { } return ( - + + {windowSize.width < 1155 && ( + + )} + + {windowSize.width >= 1155 && } + {isActivationValScreen && ( + + )} + + + + ) +} + +type CopyPastedNotificationProps = { + isSmallScreen?: boolean +} + +const CopyPastedNotification = ({ + isSmallScreen, +}: CopyPastedNotificationProps) => { + const isCopyPastedPhrase = useSelector( + (state: RootState) => state.keyGeneration.isCopyPastedPhrase, + ) + + return ( + <> {isCopyPastedPhrase && ( - + { /> )} - {isActivationValScreen && ( - - )} - - + ) }