feat: create story for the title and use the title

This commit is contained in:
RadoslavDimchev 2023-08-25 13:50:41 +03:00
parent df45456adc
commit 2c68f29335
2 changed files with 22 additions and 4 deletions

View File

@ -1,13 +1,11 @@
import { Text } from '@status-im/components'
import { XStack } from 'tamagui'
import SyncCard from './SyncCard'
import KeyGenerationTitle from './KeyGenerationTitle'
const KeyGenerationHeader = () => {
return (
<XStack style={{ width: '100%', alignItems: 'center', justifyContent: 'space-between' }}>
<Text size={27} weight={'semibold'}>
Key Generation
</Text>
<KeyGenerationTitle />
<XStack space={'$2'}>
<SyncCard synced={123.524} total={172.503} title="Execution Sync Status" />
<SyncCard synced={123.524} total={172.503} title="Consensus Sync Status" />

View File

@ -0,0 +1,20 @@
import type { Meta, StoryObj } from '@storybook/react'
import KeyGenerationTitle from './KeyGenerationTitle'
const meta = {
title: 'ValidatorOnboarding/KeyGenerationTitle',
component: KeyGenerationTitle,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {},
} satisfies Meta<typeof KeyGenerationTitle>
export default meta
type Story = StoryObj<typeof meta>
export const Page: Story = {
args: {},
}