diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx index 69416dd2..f13885a1 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx @@ -3,7 +3,7 @@ import KeyGenerationHeader from './KeyGenerationHeader' const KeyGeneration = () => { return ( - + ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.stories.ts new file mode 100644 index 00000000..1cf1fe8e --- /dev/null +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.stories.ts @@ -0,0 +1,20 @@ +import type { Meta, StoryObj } from '@storybook/react' + +import KeyGenerationHeader from './KeyGenerationHeader' + +const meta = { + title: 'ValidatorOnboarding/KeyGenerationHeader', + component: KeyGenerationHeader, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], + argTypes: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Page: Story = { + args: {}, +} diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx index 6e15f796..c38e5226 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGenerationHeader.tsx @@ -1,16 +1,16 @@ import { Text } from '@status-im/components' import { XStack } from 'tamagui' -// import SyncCard from './SyncCard' +import SyncCard from './SyncCard' const KeyGenerationHeader = () => { return ( - + Key Generation - {/* - */} + + ) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts new file mode 100644 index 00000000..0cfc8197 --- /dev/null +++ b/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.stories.ts @@ -0,0 +1,24 @@ +import type { Meta, StoryObj } from '@storybook/react' + +import SyncCard from './SyncCard' + +const meta = { + title: 'ValidatorOnboarding/SyncCard', + component: SyncCard, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], + argTypes: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Page: Story = { + args: { + synced: 123.524, + total: 172.503, + title: 'Execution Sync Status', + }, +} diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx new file mode 100644 index 00000000..ce399e64 --- /dev/null +++ b/src/pages/ValidatorOnboarding/KeyGeneration/SyncCard.tsx @@ -0,0 +1,57 @@ +import { Stack, XStack, YStack } from 'tamagui' +import StandardGauge from '../../../components/Charts/StandardGauge' +import { ClearIcon } from '@status-im/icons' +import { Text } from '@status-im/components' + +type SyncCardProps = { + synced: number + total: number + title: string +} + +const SyncCard = ({ synced, total, title }: SyncCardProps) => { + const data = () => { + return [ + { + id: 'storage', + label: 'Used', + value: synced, + color: '#2a4af5', + }, + { + id: 'storage', + label: 'Free', + value: total - synced || 1, + color: '#E7EAEE', + }, + ] + } + + return ( + + + + + + + {title} + + + {synced} / {total} + + + + + ) +} + +export default SyncCard