clear code

This commit is contained in:
Hristo Nedelkov 2023-09-27 22:54:12 +03:00
parent 5daa10213c
commit 53eb095d40

View File

@ -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>