fix: change numbers to new format

This commit is contained in:
RadoslavDimchev 2023-08-30 10:52:11 +03:00
parent c282436245
commit 9aab726a4c
2 changed files with 8 additions and 6 deletions

View File

@ -13,6 +13,7 @@ import { useEffect } from 'react'
const DeviceSyncStatus = () => { const DeviceSyncStatus = () => {
const dispatch = useDispatch() const dispatch = useDispatch()
useEffect(() => { useEffect(() => {
dispatch( dispatch(
setPinnedMessage({ setPinnedMessage({
@ -22,6 +23,7 @@ const DeviceSyncStatus = () => {
}), }),
) )
}, [dispatch]) }, [dispatch])
return ( return (
<PageWrapperShadow rightImageSrc="./background-images/sync-status-background.png"> <PageWrapperShadow rightImageSrc="./background-images/sync-status-background.png">
<YStack <YStack
@ -38,8 +40,8 @@ const DeviceSyncStatus = () => {
subtitle="Monitor your Validator Client and Beacon Node syncing progression." subtitle="Monitor your Validator Client and Beacon Node syncing progression."
/> />
<YStack style={{ width: '100%' }}> <YStack style={{ width: '100%' }}>
<SyncStatusCardExecution synced={132432} total={200000} /> <SyncStatusCardExecution synced={132.432} total={200.0} />
<SyncStatusCardConsensus synced={149500} total={160000} /> <SyncStatusCardConsensus synced={149.5} total={160.0} />
</YStack> </YStack>
<Stack style={{ marginTop: '1rem' }}> <Stack style={{ marginTop: '1rem' }}>
<Button>Continue</Button> <Button>Continue</Button>

View File

@ -54,16 +54,16 @@ const Activation = () => {
value="" value=""
isGaugeIncluded={true} isGaugeIncluded={true}
gaugeColor={'#2a4af5'} gaugeColor={'#2a4af5'}
gaugeSynced={123524} gaugeSynced={123.524}
gaugeTotal={172503} gaugeTotal={172.503}
/> />
<ActivationCard <ActivationCard
text="Execution Sync Status" text="Execution Sync Status"
value="" value=""
isGaugeIncluded={true} isGaugeIncluded={true}
gaugeColor={'#EB5757'} gaugeColor={'#EB5757'}
gaugeSynced={123524} gaugeSynced={123.524}
gaugeTotal={172503} gaugeTotal={172.503}
/> />
</XStack> </XStack>
<XStack space={'$3'}> <XStack space={'$3'}>