mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-08 09:34:40 +00:00
Update SyncStatus design from new figma design
This commit is contained in:
parent
46ab5f47b6
commit
b409640518
@ -5,6 +5,8 @@ import { CSSProperties } from 'react'
|
|||||||
|
|
||||||
import { formatNumberWithComa } from '../../../utilities'
|
import { formatNumberWithComa } from '../../../utilities'
|
||||||
import IconText from '../../../components/General/IconText'
|
import IconText from '../../../components/General/IconText'
|
||||||
|
import Icon from '../../../components/General/Icon'
|
||||||
|
import StandardGauge from '../../../components/Charts/StandardGauge'
|
||||||
|
|
||||||
type SyncCardContentProps = {
|
type SyncCardContentProps = {
|
||||||
title: string
|
title: string
|
||||||
@ -12,7 +14,20 @@ type SyncCardContentProps = {
|
|||||||
total: number
|
total: number
|
||||||
isTop?: boolean
|
isTop?: boolean
|
||||||
}
|
}
|
||||||
|
const data = [
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Used',
|
||||||
|
value: 132156,
|
||||||
|
color: '#ff6161',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Free',
|
||||||
|
value: 200000,
|
||||||
|
color: '#E7EAEE',
|
||||||
|
},
|
||||||
|
]
|
||||||
const SyncCardContent = ({ title, value, total, isTop }: SyncCardContentProps) => {
|
const SyncCardContent = ({ title, value, total, isTop }: SyncCardContentProps) => {
|
||||||
const style: CSSProperties = {}
|
const style: CSSProperties = {}
|
||||||
|
|
||||||
@ -31,6 +46,17 @@ const SyncCardContent = ({ title, value, total, isTop }: SyncCardContentProps) =
|
|||||||
<Text size={15} weight={'semibold'} color="#647084">
|
<Text size={15} weight={'semibold'} color="#647084">
|
||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
|
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
|
||||||
|
<Icon src="./icons/vector.svg" height={46} width={93} />
|
||||||
|
<Stack
|
||||||
|
style={{
|
||||||
|
height: '115px',
|
||||||
|
width: '115px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<StandardGauge data={data} />
|
||||||
|
</Stack>
|
||||||
|
</XStack>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<XStack space={'$3'} style={{ padding: '12px 16px' }}>
|
<XStack space={'$3'} style={{ padding: '12px 16px' }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user