From f6cf36fc81c720dc9e02890b9dd57b4acc623681 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 9 Jan 2024 22:19:17 +0200 Subject: [PATCH] feat: replace xstack with styled div for rec mechanism --- .../KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx | 7 ++++--- .../ValidatorOnboarding/KeyGeneration/index.module.css | 8 ++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/pages/ValidatorOnboarding/KeyGeneration/index.module.css diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx index 0a577a04..16129a35 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx @@ -1,8 +1,9 @@ import { Text } from '@status-im/components' -import { XStack, YStack } from 'tamagui' +import { YStack } from 'tamagui' import RecoveryMechanismCard from './RecoveryMechanismCard' import { BOTH_KEY_AND_RECOVERY, KEYSTORE_FILES, RECOVERY_PHRASE } from '../../../../constants' +import styles from '../index.module.css' type RecoveryMechanismProps = { recoveryMechanism: string @@ -20,7 +21,7 @@ const RecoveryMechanism = ({ recoveryMechanism }: RecoveryMechanismProps) => { Select Recovery Mechanism - +
{Object.entries(cards).map(([value, icon]) => ( { icon={icon} /> ))} - +
) } diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/index.module.css b/src/pages/ValidatorOnboarding/KeyGeneration/index.module.css new file mode 100644 index 00000000..e305bf86 --- /dev/null +++ b/src/pages/ValidatorOnboarding/KeyGeneration/index.module.css @@ -0,0 +1,8 @@ +.recovery-mechanism-container { + display: flex; + flex-wrap: wrap; + gap: 15px; + justify-content: space-between; + margin-top: 40px; +} +