From 9ff09dedba08613698b59fc100416e3f5b00e36e Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:34:51 +0300 Subject: [PATCH] feat: replace alert and check circle --- public/icons/alert.png | Bin 499 -> 0 bytes public/icons/check-circle.png | Bin 446 -> 0 bytes src/components/Charts/DeviceCPULoad.tsx | 5 +++-- src/components/Charts/DeviceMemoryHealth.tsx | 5 ++++- src/components/Charts/DeviceNetworkHealth.tsx | 5 ++++- src/components/Charts/DeviceStorageHealth.tsx | 3 ++- 6 files changed, 13 insertions(+), 5 deletions(-) delete mode 100644 public/icons/alert.png delete mode 100644 public/icons/check-circle.png diff --git a/public/icons/alert.png b/public/icons/alert.png deleted file mode 100644 index 149dff5bf29fc95b53ace2e8d63704833422f3eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 499 zcmV{5V7b&_PTGPyyymB-}xu13E}PC?X&^{CMPi?3yGv zwqvo9b-umbx!svPpvETJv`5UbBMeB%#K3@%SSpa9U(j#h4`71LWk5^_7@3H~4|HTfm_G=x zrIL@kwuwxXgi7=l%g()L`z{9fXJFZ)zBgKd+6PB%o+hBsI&hEnplfRdEe3~#1_;73 zF#+_QqBCEF1^Ah>G}HtkScep45|w?J1|IFmIf`?&G0j}Cd1p?ifqzLFs+S7@u~!E) zf(5wTj$mVH*^^Kxv(TC#|zYKxt7GEb+c~{GqrV31`N>K!CqsA{gW~AjCK;iZ2mC89Xilp36Au z0{^BLJlNt@s$dq|x5Ja`Tp-s7Qi_U_D%g#4As0xzcDi;V>DSP)z_wHJ7W`=48l49G o8j& = ({ load }) => { justifyContent="space-between" style={{ padding: '8px 16px', - position: 'relative', // Make XStack a positioning context + position: 'relative', }} >
@@ -67,7 +68,7 @@ const DeviceCPULoad: React.FC = ({ load }) => { : } weight={'semibold'} > {message} diff --git a/src/components/Charts/DeviceMemoryHealth.tsx b/src/components/Charts/DeviceMemoryHealth.tsx index 444674c8..1dbfc560 100644 --- a/src/components/Charts/DeviceMemoryHealth.tsx +++ b/src/components/Charts/DeviceMemoryHealth.tsx @@ -3,6 +3,7 @@ import StandartLineChart from './StandardLineChart' import IconText from '../General/IconText' import { Paragraph, Separator, XStack, YStack } from 'tamagui' import { Shadow as ShadowBox, Text } from '@status-im/components' +import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' type DataPoint = { x: number @@ -70,7 +71,9 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp - + : } + > {message} {message === 'Poor' && ( diff --git a/src/components/Charts/DeviceNetworkHealth.tsx b/src/components/Charts/DeviceNetworkHealth.tsx index 2dbfdb51..3604fb8b 100644 --- a/src/components/Charts/DeviceNetworkHealth.tsx +++ b/src/components/Charts/DeviceNetworkHealth.tsx @@ -2,6 +2,7 @@ import StandartLineChart from './StandardLineChart' import IconText from '../General/IconText' import { Paragraph, Separator, XStack, YStack } from 'tamagui' import { Shadow as ShadowBox, Text } from '@status-im/components' +import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' type DataPoint = { x: number @@ -75,7 +76,9 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr - + : } + > {message} {message === 'Poor' && ( diff --git a/src/components/Charts/DeviceStorageHealth.tsx b/src/components/Charts/DeviceStorageHealth.tsx index 6c6da6c5..4ff8ccca 100644 --- a/src/components/Charts/DeviceStorageHealth.tsx +++ b/src/components/Charts/DeviceStorageHealth.tsx @@ -2,6 +2,7 @@ import IconText from '../General/IconText' import { Paragraph, Separator, XStack, YStack } from 'tamagui' import StandardGauge from './StandardGauge' import { Shadow, Text } from '@status-im/components' +import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' interface DeviceStorageHealthProps { storage: number maxStorage: number @@ -69,7 +70,7 @@ const DeviceStorageHealth: React.FC = ({ storage, maxS : } weight={'semibold'} > {message}