mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-08 01:23:33 +00:00
Implement Activation Sync card
This commit is contained in:
parent
209b2c706d
commit
be3c194986
@ -0,0 +1,47 @@
|
|||||||
|
import { Stack, XStack, YStack } from 'tamagui'
|
||||||
|
import StandardGauge from '../../../components/Charts/StandardGauge'
|
||||||
|
import { Text } from '@status-im/components'
|
||||||
|
import BorderBox from '../../../components/General/BorderBox'
|
||||||
|
|
||||||
|
type ActivationSyncCardProps = {
|
||||||
|
synced: number
|
||||||
|
total: number
|
||||||
|
color: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const ActivationSyncCard = ({ synced, total, color }: ActivationSyncCardProps) => {
|
||||||
|
return (
|
||||||
|
<XStack space={'$2'} alignItems="center">
|
||||||
|
<Stack
|
||||||
|
style={{
|
||||||
|
height: '35px',
|
||||||
|
width: '35px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<StandardGauge
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
id: 'sync card',
|
||||||
|
label: 'Sync Status',
|
||||||
|
value: synced,
|
||||||
|
color: color,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'free',
|
||||||
|
label: 'free',
|
||||||
|
value: total - synced || 1,
|
||||||
|
color: '#E7EAEE',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
|
<YStack>
|
||||||
|
<Text size={15} weight={'semibold'}>
|
||||||
|
{synced} / {total}
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
|
</XStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ActivationSyncCard
|
Loading…
x
Reference in New Issue
Block a user