feat: create story for the title and use the title
This commit is contained in:
parent
df45456adc
commit
2c68f29335
|
@ -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" />
|
||||
|
|
|
@ -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: {},
|
||||
}
|
Loading…
Reference in New Issue