From 53eb095d40d354d432dbfacbde3a1fed69390ca4 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Wed, 27 Sep 2023 22:54:12 +0300 Subject: [PATCH] clear code --- src/components/Charts/DeviceNetworkHealth.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Charts/DeviceNetworkHealth.tsx b/src/components/Charts/DeviceNetworkHealth.tsx index cb2018d0..c88441c0 100644 --- a/src/components/Charts/DeviceNetworkHealth.tsx +++ b/src/components/Charts/DeviceNetworkHealth.tsx @@ -53,7 +53,7 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr minHeight: '135px', borderRadius: '16px', border: upload.message === 'Poor' ? '1px solid #D92344' : 'none', - backgroundColor: upload.message === 'Poor' ? '#fefafa' : '#fff', + backgroundColor: upload.message === 'Poor' ? '#fefafa' : '#fff', }} > @@ -79,12 +79,12 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr : } + icon={upload.message === 'Good' ? : } weight={'semibold'} > - { upload.message} + {upload.message} - { upload.message === 'Poor' && ( + {upload.message === 'Poor' && ( {((upload.currentLoad / 60) * 100).toFixed(0)}% Utilization