fix: change props names

This commit is contained in:
RadoslavDimchev 2023-08-30 11:36:41 +03:00
parent 9ae769ef6b
commit adbbf7f9db
2 changed files with 11 additions and 11 deletions

View File

@ -45,9 +45,9 @@ const ActivationCard = ({
{text}
</Text>
<ActivationSyncCard
color={gaugeColor || ''}
synced={gaugeSynced || 0}
total={gaugeTotal || 1}
gaugeColor={gaugeColor || ''}
gaugeSynced={gaugeSynced || 0}
gaugeTotal={gaugeTotal || 1}
/>
</Stack>
)}

View File

@ -4,12 +4,12 @@ import { Text } from '@status-im/components'
import { formatNumberForGauge } from '../../../utilities'
type ActivationSyncCardProps = {
synced: number
total: number
color: string
gaugeColor: string
gaugeSynced: number
gaugeTotal: number
}
const ActivationSyncCard = ({ synced, total, color }: ActivationSyncCardProps) => {
const ActivationSyncCard = ({ gaugeColor, gaugeSynced, gaugeTotal }: ActivationSyncCardProps) => {
return (
<XStack space={'$2'} alignItems="center">
<Stack
@ -23,13 +23,13 @@ const ActivationSyncCard = ({ synced, total, color }: ActivationSyncCardProps) =
{
id: 'sync card',
label: 'Sync Status',
value: synced,
color: color,
value: gaugeSynced,
color: gaugeColor,
},
{
id: 'free',
label: 'free',
value: total - synced || 1,
value: gaugeTotal - gaugeSynced || 1,
color: '#E7EAEE',
},
]}
@ -37,7 +37,7 @@ const ActivationSyncCard = ({ synced, total, color }: ActivationSyncCardProps) =
</Stack>
<YStack>
<Text size={15} weight={'semibold'}>
{formatNumberForGauge(synced)} / {formatNumberForGauge(total)}
{formatNumberForGauge(gaugeSynced)} / {formatNumberForGauge(gaugeTotal)}
</Text>
</YStack>
</XStack>