fix: change name of sync card

This commit is contained in:
RadoslavDimchev 2023-08-25 14:50:56 +03:00
parent a49175aea5
commit 1404cbe75c
3 changed files with 10 additions and 10 deletions

View File

@ -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 = () => {
<XStack style={{ width: '100%', alignItems: 'center', justifyContent: 'space-between' }}>
<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" />
<KeyGenerationSyncCard synced={123.524} total={172.503} title="Execution Sync Status" />
<KeyGenerationSyncCard synced={123.524} total={172.503} title="Consensus Sync Status" />
</XStack>
</XStack>
)

View File

@ -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<typeof SyncCard>
} satisfies Meta<typeof KeyGenerationSyncCard>
export default meta
type Story = StoryObj<typeof meta>

View File

@ -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