Fix texts
This commit is contained in:
parent
71c51c1682
commit
fc65965e18
|
@ -13,23 +13,23 @@ type ConsensusCardProps = {
|
||||||
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 ConsensusCard = ({ value, total, isTop }: ConsensusCardProps) => {
|
const ConsensusCard = ({ value, total, isTop }: ConsensusCardProps) => {
|
||||||
const style: CSSProperties = {}
|
const style: CSSProperties = {}
|
||||||
|
const data = [
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Used',
|
||||||
|
value,
|
||||||
|
color: '#ff6161',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Free',
|
||||||
|
value: total,
|
||||||
|
color: '#E7EAEE',
|
||||||
|
},
|
||||||
|
]
|
||||||
if (isTop === true) {
|
if (isTop === true) {
|
||||||
style.borderTopLeftRadius = '16px'
|
style.borderTopLeftRadius = '16px'
|
||||||
style.borderTopRightRadius = '16px'
|
style.borderTopRightRadius = '16px'
|
||||||
|
|
|
@ -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 data = [
|
|
||||||
{
|
|
||||||
id: 'storage',
|
|
||||||
label: 'Used',
|
|
||||||
value: 132156,
|
|
||||||
color: '#7140FD',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'storage',
|
|
||||||
label: 'Free',
|
|
||||||
value: 200000,
|
|
||||||
color: '#E7EAEE',
|
|
||||||
},
|
|
||||||
]
|
|
||||||
const ExecutionClientCard = ({ value, total, isTop }: ExecutionClientCardProps) => {
|
const ExecutionClientCard = ({ value, total, isTop }: ExecutionClientCardProps) => {
|
||||||
|
const data = [
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Used',
|
||||||
|
value,
|
||||||
|
color: '#7140FD',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
label: 'Free',
|
||||||
|
value: total,
|
||||||
|
color: '#E7EAEE',
|
||||||
|
},
|
||||||
|
]
|
||||||
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',
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue