From 8448db37aa9e19128b0366a79ccec91fc0fcb778 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 30 Aug 2023 11:39:10 +0300 Subject: [PATCH] fix: move key generation header in another folder --- .../ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx | 2 +- .../KeyGenerationHeader.stories.ts | 0 .../{ => KeyGenerationHeader}/KeyGenerationHeader.tsx | 2 +- .../KeyGenerationSyncCard.stories.ts | 0 .../{ => KeyGenerationHeader}/KeyGenerationSyncCard.tsx | 6 +++--- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/pages/ValidatorOnboarding/KeyGeneration/{ => KeyGenerationHeader}/KeyGenerationHeader.stories.ts (100%) rename src/pages/ValidatorOnboarding/KeyGeneration/{ => KeyGenerationHeader}/KeyGenerationHeader.tsx (92%) rename src/pages/ValidatorOnboarding/KeyGeneration/{ => KeyGenerationHeader}/KeyGenerationSyncCard.stories.ts (100%) rename src/pages/ValidatorOnboarding/KeyGeneration/{ => KeyGenerationHeader}/KeyGenerationSyncCard.tsx (87%) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx index f41ff91e..3b3bd4e8 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx @@ -2,7 +2,7 @@ import { Stack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { useState } from 'react' -import KeyGenerationHeader from './KeyGenerationHeader' +import KeyGenerationHeader from './KeyGenerationHeader/KeyGenerationHeader' import RecoveryMechanism from './RecoveryMechanism' import KeystoreFiles from './KeystoreFiles' import RecoveryPhrase from './RecoveryPhrase' diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationHeader.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationHeader.stories.ts diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationHeader.tsx similarity index 92% rename from src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationHeader.tsx index dd6ecea1..a239185c 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationHeader.tsx @@ -1,6 +1,6 @@ import { XStack } from 'tamagui' import KeyGenerationSyncCard from './KeyGenerationSyncCard' -import KeyGenerationTitle from './KeyGenerationTitle' +import KeyGenerationTitle from '../KeyGenerationTitle' const KeyGenerationHeader = () => { return ( diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.stories.ts diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx similarity index 87% rename from src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx index 161559c3..16174eab 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader/KeyGenerationSyncCard.tsx @@ -1,9 +1,9 @@ import { Stack, XStack, YStack } from 'tamagui' -import StandardGauge from '../../../components/Charts/StandardGauge' +import StandardGauge from '../../../../components/Charts/StandardGauge' import { ClearIcon } from '@status-im/icons' import { Text } from '@status-im/components' -import BorderBox from '../../../components/General/BorderBox' -import { formatNumberForGauge } from '../../../utilities' +import BorderBox from '../../../../components/General/BorderBox' +import { formatNumberForGauge } from '../../../../utilities' type KeyGenerationSyncCardProps = { synced: number