From 1404cbe75c06af2672c602df1f4eb4d3f0b1c3ec Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 25 Aug 2023 14:50:56 +0300 Subject: [PATCH] fix: change name of sync card --- .../KeyGeneration/KeyGenerationHeader.tsx | 6 +++--- ...ncCard.stories.ts => KeyGenerationSyncCard.stories.ts} | 8 ++++---- .../{SyncCard.tsx => KeyGenerationSyncCard.tsx} | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) rename src/pages/ValidatorOnboarding/KeyGeneration/{SyncCard.stories.ts => KeyGenerationSyncCard.stories.ts} (62%) rename src/pages/ValidatorOnboarding/KeyGeneration/{SyncCard.tsx => KeyGenerationSyncCard.tsx} (87%) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx index 886528f3..f56e01e3 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx @@ -1,5 +1,5 @@ import { XStack } from 'tamagui' -import SyncCard from './SyncCard' +import KeyGenerationSyncCard from './KeyGenerationSyncCard' import KeyGenerationTitle from './KeyGenerationTitle' const KeyGenerationHeader = () => { @@ -7,8 +7,8 @@ const KeyGenerationHeader = () => { - - + + ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts similarity index 62% rename from src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts index 0cfc8197..9873c600 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.stories.ts @@ -1,16 +1,16 @@ import type { Meta, StoryObj } from '@storybook/react' -import SyncCard from './SyncCard' +import KeyGenerationSyncCard from './KeyGenerationSyncCard' const meta = { - title: 'ValidatorOnboarding/SyncCard', - component: SyncCard, + title: 'ValidatorOnboarding/KeyGenerationSyncCard', + component: KeyGenerationSyncCard, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: {}, -} satisfies Meta +} satisfies Meta export default meta type Story = StoryObj diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx similarity index 87% rename from src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx index ce399e64..8208dcb9 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationSyncCard.tsx @@ -3,13 +3,13 @@ import StandardGauge from '../../../components/Charts/StandardGauge' import { ClearIcon } from '@status-im/icons' import { Text } from '@status-im/components' -type SyncCardProps = { +type KeyGenerationSyncCardProps = { synced: number total: number title: string } -const SyncCard = ({ synced, total, title }: SyncCardProps) => { +const KeyGenerationSyncCard = ({ synced, total, title }: KeyGenerationSyncCardProps) => { const data = () => { return [ { @@ -54,4 +54,4 @@ const SyncCard = ({ synced, total, title }: SyncCardProps) => { ) } -export default SyncCard +export default KeyGenerationSyncCard