Fix texts

This commit is contained in:
Hristo Nedelkov 2023-09-21 09:43:12 +03:00
parent 71c51c1682
commit fc65965e18
3 changed files with 34 additions and 33 deletions

View File

@ -13,23 +13,23 @@ type ConsensusCardProps = {
total: number total: number
isTop?: boolean isTop?: boolean
} }
const ConsensusCard = ({ value, total, isTop }: ConsensusCardProps) => {
const style: CSSProperties = {}
const data = [ const data = [
{ {
id: 'storage', id: 'storage',
label: 'Used', label: 'Used',
value: 132156, value,
color: '#ff6161', color: '#ff6161',
}, },
{ {
id: 'storage', id: 'storage',
label: 'Free', label: 'Free',
value: 200000, value: total,
color: '#E7EAEE', color: '#E7EAEE',
}, },
] ]
const ConsensusCard = ({ value, total, isTop }: ConsensusCardProps) => {
const style: CSSProperties = {}
if (isTop === true) { if (isTop === true) {
style.borderTopLeftRadius = '16px' style.borderTopLeftRadius = '16px'
style.borderTopRightRadius = '16px' style.borderTopRightRadius = '16px'

View File

@ -5,7 +5,7 @@ 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' import StandardGauge from '../../../components/Charts/StandardGauge'
type ExecutionClientCardProps = { type ExecutionClientCardProps = {
@ -13,21 +13,22 @@ type ExecutionClientCardProps = {
total: number total: number
isTop?: boolean isTop?: boolean
} }
const ExecutionClientCard = ({ value, total, isTop }: ExecutionClientCardProps) => {
const data = [ const data = [
{ {
id: 'storage', id: 'storage',
label: 'Used', label: 'Used',
value: 132156, value,
color: '#7140FD', color: '#7140FD',
}, },
{ {
id: 'storage', id: 'storage',
label: 'Free', label: 'Free',
value: 200000, value: total,
color: '#E7EAEE', color: '#E7EAEE',
}, },
] ]
const ExecutionClientCard = ({ value, total, isTop }: ExecutionClientCardProps) => {
const style: CSSProperties = {} const style: CSSProperties = {}
if (isTop === true) { if (isTop === true) {
@ -46,7 +47,7 @@ const ExecutionClientCard = ({ value, total, isTop }: ExecutionClientCardProps)
Execution Client Execution Client
</Text> </Text>
<XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}> <XStack style={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Icon src="./icons/vector.svg" height={30} width={60} /> <Text size={19} weight={'semibold'}>Geth</Text>
<Stack <Stack
style={{ style={{
height: '56px', height: '56px',

View File

@ -15,9 +15,9 @@ const SyncStatusCard = () => {
</Text> </Text>
</Stack> </Stack>
<YStack> <YStack>
<ExecutionClientCard value={123.424} total={170} isTop={false} /> <ExecutionClientCard value={153.424} total={170} isTop={false} />
<Separator borderColor={'#e3e3e3'} /> <Separator borderColor={'#e3e3e3'} />
<ConsensusCard value={123.424} total={170} isTop={true} /> <ConsensusCard value={103.424} total={170} isTop={true} />
</YStack> </YStack>
</YStack> </YStack>
</DashboardCardWrapper> </DashboardCardWrapper>