feat(vaidator data cards): add data to cards

Co-authored-by: Emil Ivanichkov <emil.ivanichkov@gmail.com>
This commit is contained in:
Hristo Nedelkov 2024-03-14 10:54:44 +02:00
parent 72ada71c60
commit f6442e3f27
2 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import { Text } from '@status-im/components'
import { Stack, XStack, YStack } from 'tamagui'
import { XStack, YStack } from 'tamagui'
import Icon from '../../../components/General/Icon'
type ValidatorDataCardProps = {

View File

@ -15,14 +15,22 @@ const ValidatorDataCards = () => {
}}
>
<ValidatorPeersCard title="Peers" value="67"></ValidatorPeersCard>
<ValidatorDataCard title="Blocks" value={1900} fractionValue={1023} iconPath="ghost.png" isFractionResult={true}/>
<ValidatorDataCard title="Slots Behind" value={19} iconPath="ghost.png" />
<ValidatorDataCard
title="Attestations"
title="Blocks"
value={1452}
iconPath="rubiks-cube.png"
isFractionResult={true}
fractionValue={987}
/>
<ValidatorDataCard title="Syncs" value={45} iconPath="pacman.png" />
<ValidatorDataCard title="Deposits" value={1} iconPath="toaster.png" />
<ValidatorDataCard
title="Attestations"
value={2199}
iconPath="pacman.png"
fractionValue={1023}
isFractionResult={true}
/>
<ValidatorDataCard title="Syncs" value={1} iconPath="toaster.png" />
</Stack>
)
}