clear code
This commit is contained in:
parent
5daa10213c
commit
53eb095d40
|
@ -53,7 +53,7 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr
|
||||||
minHeight: '135px',
|
minHeight: '135px',
|
||||||
borderRadius: '16px',
|
borderRadius: '16px',
|
||||||
border: upload.message === 'Poor' ? '1px solid #D92344' : 'none',
|
border: upload.message === 'Poor' ? '1px solid #D92344' : 'none',
|
||||||
backgroundColor: upload.message === 'Poor' ? '#fefafa' : '#fff',
|
backgroundColor: upload.message === 'Poor' ? '#fefafa' : '#fff',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<YStack>
|
<YStack>
|
||||||
|
@ -79,12 +79,12 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr
|
||||||
<Separator borderColor={'#e3e3e3'} />
|
<Separator borderColor={'#e3e3e3'} />
|
||||||
<XStack space={'$4'} style={{ padding: '0.65rem 1rem' }}>
|
<XStack space={'$4'} style={{ padding: '0.65rem 1rem' }}>
|
||||||
<IconText
|
<IconText
|
||||||
icon={ upload.message === 'Good' ? <CheckCircleIcon size={16} /> : <IncorrectIcon size={16} />}
|
icon={upload.message === 'Good' ? <CheckCircleIcon size={16} /> : <IncorrectIcon size={16} />}
|
||||||
weight={'semibold'}
|
weight={'semibold'}
|
||||||
>
|
>
|
||||||
{ upload.message}
|
{upload.message}
|
||||||
</IconText>
|
</IconText>
|
||||||
{ upload.message === 'Poor' && (
|
{upload.message === 'Poor' && (
|
||||||
<Text size={13} color={'#E95460'} weight={'semibold'}>
|
<Text size={13} color={'#E95460'} weight={'semibold'}>
|
||||||
{((upload.currentLoad / 60) * 100).toFixed(0)}% Utilization
|
{((upload.currentLoad / 60) * 100).toFixed(0)}% Utilization
|
||||||
</Text>
|
</Text>
|
||||||
|
|
Loading…
Reference in New Issue