From 8c4120383de97d9703f4cf60563f499f3a7839d9 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:17:11 +0300 Subject: [PATCH 01/14] feat: replace green and red checkmarks --- public/icons/checkmark-circle-green.png | Bin 541 -> 0 bytes public/icons/remove-circle-red.png | Bin 486 -> 0 bytes src/components/General/IconText.tsx | 6 +++--- src/components/General/StatusIconText.tsx | 4 ++-- src/constants.ts | 3 --- 5 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 public/icons/checkmark-circle-green.png delete mode 100644 public/icons/remove-circle-red.png diff --git a/public/icons/checkmark-circle-green.png b/public/icons/checkmark-circle-green.png deleted file mode 100644 index af6880d1437bf3fe063894de2202b2073236a9d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 541 zcmV+&0^4c z!cY)~XWpxgy5b0U0wBS}op=KE1j0t*l8wr$bcLS4sEgtaxPf(NBE)h6IRZu^Nc-M6 z4=ffeZgf`do6bMq`)3O9$H271;%&2pBy#{dZ{7*9Z$r~HN64)rx^=^hHa?^e&ZASGhDaBWlo$bc12UO?%?&Pm;$5=53b zLP2d<5iy-13o5k%w{4-soXJ@;lPIf&@Y9O7Z<=LIQ0i9C=5(5LPXg{Pc#ynn5}oB8 zrD+dV#Fu~w%&5%MFkJVF*UiQP`qKObik#Vv`4vd19!O~9J;#m4P?Ky}@%Ca@Yse@P)CXd!>#+7T>-FMx!cwpb{+Gwe9a zI}o&d$DlGxHYUkHAgAiR(#=C{F~1C_>{w3`GV38`ff z3`~5EP!ND6CRCxo#xhYt@aB41B6`$7-7hC>E`>xnC?d{URsq z!0TE0hVvfcy@+3DEi%);YwRKj9EWpIPEI|U5NNHhiKW9H$f?#85n7f-d9y!=!k7gj z1xY!ZO9@lqt*KpW90JmLqF@;#SxLjMudg?Dp@1a~cywmwZ6lG_t-TP!c!b7@f;r+4 z2`a`1updgsSP8*#ucHu9*&p`KG5W4oH-?JMbPyi|DW_`BW-orxd(ZSc_0@|;-Qmox zbF(kmjTdqJhn0;Vw5FQz#A2*k45OlT9@&AMtb$ZfU2f*a&lC|EZ(w$DpZ^4c9vnU2 cKf! { }} space={'$2'} > - + {icon} {children} diff --git a/src/components/General/StatusIconText.tsx b/src/components/General/StatusIconText.tsx index 7954b318..e1f43490 100644 --- a/src/components/General/StatusIconText.tsx +++ b/src/components/General/StatusIconText.tsx @@ -1,4 +1,4 @@ -import { GREEN_CHECKMARK_ICON, RED_CHECKMARK_ICON } from '../../constants' +import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' import IconText from './IconText' type StatusIconTextProps = { @@ -10,7 +10,7 @@ type StatusIconTextProps = { const StatusIconText = ({ percentage, threshold, goodText, badText }: StatusIconTextProps) => { const isGood = percentage < threshold - const icon = isGood ? GREEN_CHECKMARK_ICON : RED_CHECKMARK_ICON + const icon = isGood ? : const text = isGood ? goodText : badText return {text} diff --git a/src/constants.ts b/src/constants.ts index 2467e6ef..0967460f 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,6 +1,3 @@ -export const GREEN_CHECKMARK_ICON = '/icons/checkmark-circle-green.png' -export const RED_CHECKMARK_ICON = '/icons/remove-circle-red.png' - export const GOOD_STORAGE_TEXT = 'You have plenty of storage available for additional node services.' export const GOOD_CPU_CLOCK_RATE_TEXT = '2.4GHz is recommended for CPU.' From 9ff09dedba08613698b59fc100416e3f5b00e36e Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:34:51 +0300 Subject: [PATCH 02/14] 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} From 7c86d7a412dc078341a990227021fc51be30705c Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:36:57 +0300 Subject: [PATCH 03/14] feat: replace close icon --- public/icons/close.png | Bin 427 -> 0 bytes src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 public/icons/close.png diff --git a/public/icons/close.png b/public/icons/close.png deleted file mode 100644 index 454b44071982979d17c5ef07799775d7b27e7a7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 427 zcmV;c0aX5pP)$nD@m=h%2fFqa_B)LIE1%h~Z<76dU zNQ`88ci+sLd2g4g5>a&5_@HgyknHGQNZyBOcT&w^yJ$y!zaSoAnXf;MVbj z$qH0vwwf}v72CLWaVxjX0G$?QZ33)zq#Rem+Qro_Dt { return ( @@ -45,7 +45,7 @@ const DeviceHealthCheck = () => { networkLatency={75} /> } + icon={} message="The information provided in the Nodes Health Check is meant to utilized as a guide to guage the readiness of your device, however please do your own due diligence prior to commiting any funds. Read our Health Check Disclosure for more information." /> From 2f5086002a4c7b609cb3cd09696ae3953948ae01 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:43:19 +0300 Subject: [PATCH 04/14] feat: replace reveal icon --- public/icons/reveal.png | Bin 557 -> 0 bytes src/components/General/Titles.tsx | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 public/icons/reveal.png diff --git a/public/icons/reveal.png b/public/icons/reveal.png deleted file mode 100644 index 36bc9e757f56a0f25194c7fcdd640e9a19b80e53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 557 zcmV+|0@D47P)MzcmlYAaD#FKIf2DsLgGskpZp=E5#u9$G>TGBpq`-h1bT#e0{fsZwe30s zEiMEM@tH4~>|}TL+i$-afDM+RYuPo9b!u_dLC3l<=-8&TPEk>g0)f)I8TKC5BJ5gM zwFJ^Jr3PP?D7>=Bf;hz;iLxps?jcB%!qXseu3aZwNyua=WPS!22-M8m;pq$STb4ah z=(QCsup! zo_Xvkd9+`gPf4{FrFBwoDGD)SGs^%A9YgX?Djmj%6{$7Ko$cwJ9Q1-uOGW*1J~}>) ziJ3`w=bSoi-sL01&H94UEBiij&l__dlJqvcUfBZOH}kHJ++IM7n@RMTjPm|GneOMl zw|;-6VAVJj52(r!#F)u)-@~PZ3aMQTFE#5~fCx2+qZmqt0Le`;C<0Q}_Wl}d6$dmj v%H;_p05|WA#;9M+>A!GvJg9QO2FvgR%VX(=u#)xT00000NkvXXu0mjfZ`|## diff --git a/src/components/General/Titles.tsx b/src/components/General/Titles.tsx index 29aaae53..fdc9662c 100644 --- a/src/components/General/Titles.tsx +++ b/src/components/General/Titles.tsx @@ -1,7 +1,7 @@ import { XStack, YStack } from 'tamagui' import { Button, Text } from '@status-im/components' -import Icon from './Icon' import Title from './Title' +import { RevealIcon } from '@status-im/icons' type TitlesProps = { title: string @@ -15,7 +15,7 @@ const Titles = ({ title, subtitle, isAdvancedSettings }: TitlesProps) => { {title} {isAdvancedSettings && ( - )} From d120f9b7de4e41a5bae70b431ca9dee34944964e Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 12:56:30 +0300 Subject: [PATCH 05/14] fix: replace token icons --- public/icons/token.svg | 10 ---------- src/pages/DeviceSyncStatus/SyncStatusCardConsensus.tsx | 3 ++- src/pages/DeviceSyncStatus/SyncStatusCardExecution.tsx | 3 ++- 3 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 public/icons/token.svg diff --git a/public/icons/token.svg b/public/icons/token.svg deleted file mode 100644 index cf171b59..00000000 --- a/public/icons/token.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/pages/DeviceSyncStatus/SyncStatusCardConsensus.tsx b/src/pages/DeviceSyncStatus/SyncStatusCardConsensus.tsx index d21f5ef0..040a1f58 100644 --- a/src/pages/DeviceSyncStatus/SyncStatusCardConsensus.tsx +++ b/src/pages/DeviceSyncStatus/SyncStatusCardConsensus.tsx @@ -4,6 +4,7 @@ import { Shadow, Text } from '@status-im/components' import Icon from '../../components/General/Icon' import StandardGauge from '../../components/Charts/StandardGauge' import IconText from '../../components/General/IconText' +import { TokenIcon } from '@status-im/icons' interface DeviceStorageHealthProps { synced: number @@ -71,7 +72,7 @@ const SyncStatusCardConsensus: React.FC = ({ synced, t - {message} + }>{message} {formatNumber(synced)} / {formatNumber(total)} diff --git a/src/pages/DeviceSyncStatus/SyncStatusCardExecution.tsx b/src/pages/DeviceSyncStatus/SyncStatusCardExecution.tsx index 355ecd19..457f7256 100644 --- a/src/pages/DeviceSyncStatus/SyncStatusCardExecution.tsx +++ b/src/pages/DeviceSyncStatus/SyncStatusCardExecution.tsx @@ -2,6 +2,7 @@ import { Separator, Stack, XStack, YStack } from 'tamagui' import { Shadow, Text } from '@status-im/components' import StandardGauge from '../../components/Charts/StandardGauge' import IconText from '../../components/General/IconText' +import { TokenIcon } from '@status-im/icons' interface DeviceStorageHealthProps { synced: number @@ -72,7 +73,7 @@ const SyncStatusCardExecution: React.FC = ({ synced, t - {message} + }>{message} {' '} From b297085a9e8a6846fa9a1cb24126ea30eadfbe0a Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 14:07:42 +0300 Subject: [PATCH 06/14] fix: remove and use status icons for connect device --- src/components/Icons/ConnectIcon.tsx | 18 ------ src/components/Icons/CreateIcon.tsx | 16 ----- src/components/Icons/NodeIcon.tsx | 34 ----------- src/components/Icons/PairIcon.tsx | 61 ------------------- .../ConnectDevicePage/ConnectDevicePage.tsx | 13 ++-- 5 files changed, 5 insertions(+), 137 deletions(-) delete mode 100644 src/components/Icons/ConnectIcon.tsx delete mode 100644 src/components/Icons/CreateIcon.tsx delete mode 100644 src/components/Icons/NodeIcon.tsx delete mode 100644 src/components/Icons/PairIcon.tsx diff --git a/src/components/Icons/ConnectIcon.tsx b/src/components/Icons/ConnectIcon.tsx deleted file mode 100644 index 530659a7..00000000 --- a/src/components/Icons/ConnectIcon.tsx +++ /dev/null @@ -1,18 +0,0 @@ -function ConnectIcon() { - return ( - - - - - - ) -} - -export default ConnectIcon diff --git a/src/components/Icons/CreateIcon.tsx b/src/components/Icons/CreateIcon.tsx deleted file mode 100644 index 07a051b9..00000000 --- a/src/components/Icons/CreateIcon.tsx +++ /dev/null @@ -1,16 +0,0 @@ -function CreateIcon() { - return ( - - - - - ) -} - -export default CreateIcon diff --git a/src/components/Icons/NodeIcon.tsx b/src/components/Icons/NodeIcon.tsx deleted file mode 100644 index 9c25f8fa..00000000 --- a/src/components/Icons/NodeIcon.tsx +++ /dev/null @@ -1,34 +0,0 @@ -function NodeIcon() { - return ( - - - - - - - - - - - - - - ) -} - -export default NodeIcon diff --git a/src/components/Icons/PairIcon.tsx b/src/components/Icons/PairIcon.tsx deleted file mode 100644 index 51a93aef..00000000 --- a/src/components/Icons/PairIcon.tsx +++ /dev/null @@ -1,61 +0,0 @@ -function PairIcon() { - return ( - - - - - - - - - - - - - - - - - - - - - - ) -} - -export default PairIcon diff --git a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx b/src/pages/ConnectDevicePage/ConnectDevicePage.tsx index e9b22cc1..0e429721 100644 --- a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx +++ b/src/pages/ConnectDevicePage/ConnectDevicePage.tsx @@ -5,11 +5,8 @@ import { Label, Separator, XStack, YStack } from 'tamagui' import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' import NimbusLogo from '../../components/Logos/NimbusLogo' import Titles from '../../components/General/Titles' -import NodeIcon from '../../components/Icons/NodeIcon' -import ConnectIcon from '../../components/Icons/ConnectIcon' -import PairIcon from '../../components/Icons/PairIcon' -import CreateIcon from '../../components/Icons/CreateIcon' import LabelInputField from '../../components/General/LabelInputField' +import { AddSmallIcon, ConnectionIcon, NodeIcon, SwapIcon } from '@status-im/icons' const ConnectDevicePage = () => { const [autoConnectChecked, setAutoConnectChecked] = useState(false) @@ -24,9 +21,9 @@ const ConnectDevicePage = () => { - - - + + +
@@ -105,7 +102,7 @@ const ConnectDevicePage = () => { - }>Connect Device + }>Connect Device
From f136c8b54eb6e72e48e7cad496ce589fe07543cc Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 14:41:33 +0300 Subject: [PATCH 07/14] fix: delete reaction icon --- src/components/Icons/ReactionIcon.tsx | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/components/Icons/ReactionIcon.tsx diff --git a/src/components/Icons/ReactionIcon.tsx b/src/components/Icons/ReactionIcon.tsx deleted file mode 100644 index 74a71de2..00000000 --- a/src/components/Icons/ReactionIcon.tsx +++ /dev/null @@ -1,16 +0,0 @@ -function ReactionIcon() { - return ( - - - - - - ) -} -export default ReactionIcon From b16ee6665220809cc9f14b757a7b4684352399ba Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 14:52:38 +0300 Subject: [PATCH 08/14] fix: replace reaction icon --- src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx | 7 +++---- src/pages/PairDevice/CreateAvatar.tsx | 9 +++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx b/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx index dcc4b61f..f569b550 100644 --- a/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx +++ b/src/pages/CreateLocalNodePage/CreateLocalNodePage.tsx @@ -5,10 +5,9 @@ import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' import NimbusLogo from '../../components/Logos/NimbusLogo' import TagContainer from '../../components/General/TagContainer' import Titles from '../../components/General/Titles' -import NodeIcon from '../../components/Icons/NodeIcon' import LabelInputField from '../../components/General/LabelInputField' -import ReactionIcon from '../../components/Icons/ReactionIcon' import ColorPicker from '../../components/General/ColorPicker' +import { NodeIcon, ReactionIcon } from '@status-im/icons' const CreateLocalNodePage = () => { const [autoConnectChecked, setAutoConnectChecked] = useState(false) @@ -36,7 +35,7 @@ const CreateLocalNodePage = () => { - } backgroundColor={'white'} /> + @@ -66,7 +65,7 @@ const CreateLocalNodePage = () => { - }>Continue + }>Continue diff --git a/src/pages/PairDevice/CreateAvatar.tsx b/src/pages/PairDevice/CreateAvatar.tsx index c55f7b1e..d23c9127 100644 --- a/src/pages/PairDevice/CreateAvatar.tsx +++ b/src/pages/PairDevice/CreateAvatar.tsx @@ -2,10 +2,9 @@ import { XStack, YStack } from 'tamagui' import LabelInputField from '../../components/General/LabelInputField' import { Avatar, Text } from '@status-im/components' import ColorPicker from '../../components/General/ColorPicker' +import { ReactionIcon } from '@status-im/icons' -import ReactionIcon from '../../components/Icons/ReactionIcon' -// create func component -export const CreateAvatar = () => { +const CreateAvatar = () => { return ( @@ -18,7 +17,7 @@ export const CreateAvatar = () => { - } backgroundColor={'white'} /> + @@ -31,3 +30,5 @@ export const CreateAvatar = () => { ) } + +export default CreateAvatar From 1ef443f87e57e234a93e46921fb59b53b7c000d1 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 21 Aug 2023 15:21:09 +0300 Subject: [PATCH 09/14] fix: landing page node icon --- src/pages/LandingPage/LandingPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/LandingPage/LandingPage.tsx b/src/pages/LandingPage/LandingPage.tsx index 733fe697..31f55911 100644 --- a/src/pages/LandingPage/LandingPage.tsx +++ b/src/pages/LandingPage/LandingPage.tsx @@ -3,9 +3,9 @@ import './LandingPage.css' import QuickStartBar from '../../components/General/QuickStartBar/QuickStartBar' import Titles from '../../components/General/Titles' import { Button as StatusButton } from '@status-im/components' -import NodeIcon from '../../components/Icons/NodeIcon' import NimbusLogo from '../../components/Logos/NimbusLogo' import { XStack, YStack } from 'tamagui' +import { NodeIcon } from '@status-im/icons' function LandingPage() { return ( @@ -21,7 +21,7 @@ function LandingPage() { subtitle="Nimbus Nodes allows you to take control and ownership of the services you wish to run in a completely trustless and decentralized manner." /> - }>Get Started + }>Get Started From 502241fb63c18c8ef6c5972e4fea07026d520019 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 09:26:37 +0300 Subject: [PATCH 10/14] fix: replace existing icons after merge from mein --- src/components/General/TagContainer.tsx | 7 +++---- src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx | 3 +-- src/pages/PairDevice/PairDevice.tsx | 14 ++++++-------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/components/General/TagContainer.tsx b/src/components/General/TagContainer.tsx index 42dbfd0d..4b11be71 100644 --- a/src/components/General/TagContainer.tsx +++ b/src/components/General/TagContainer.tsx @@ -1,14 +1,13 @@ import { Tag } from '@status-im/components' import { XStack } from 'tamagui' -import PairIcon from '../Icons/PairIcon' -import CreateIcon from '../Icons/CreateIcon' import './TagContainer.css' +import { AddSmallIcon, SwapIcon } from '@status-im/icons' const TagContainer = () => { return ( - - + + ) } diff --git a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx index 8422dbbb..5454b378 100644 --- a/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx +++ b/src/pages/DeviceHealthCheck/DeviceHealthCheck.tsx @@ -13,9 +13,8 @@ import { useSelector } from 'react-redux' import { RootState } from '../../redux/store' const DeviceHealthCheck = () => { - const deviceHealthState = useSelector((state: RootState) => state.deviceHealth) - console.log(deviceHealthState) + return ( { const [autoChecked, setAutoChecked] = useState(false) const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) - const isPaired = false + const isPaired = true const isPairing = true const changeSetIsAwaitingPairing = (result: boolean) => { @@ -34,8 +32,8 @@ const PairDevice = () => { - - + + @@ -66,7 +64,7 @@ const PairDevice = () => { {isPaired && } - From 9da0cad3e69434c7f8e417a85f26e099549d3c62 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 09:31:05 +0300 Subject: [PATCH 11/14] fix: remove block and set close icon --- public/icons/block.svg | 10 ---------- src/pages/PairDevice/PairDevice.tsx | 2 +- src/pages/PairDevice/SyncStatus.tsx | 4 ++-- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 public/icons/block.svg diff --git a/public/icons/block.svg b/public/icons/block.svg deleted file mode 100644 index 4a98b7a2..00000000 --- a/public/icons/block.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index dc7643b7..393a4d07 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -14,7 +14,7 @@ import { AddSmallIcon, NodeIcon, SwapIcon } from '@status-im/icons' const PairDevice = () => { const [autoChecked, setAutoChecked] = useState(false) const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) - const isPaired = true + const isPaired = false const isPairing = true const changeSetIsAwaitingPairing = (result: boolean) => { diff --git a/src/pages/PairDevice/SyncStatus.tsx b/src/pages/PairDevice/SyncStatus.tsx index 763239e8..d18631e3 100644 --- a/src/pages/PairDevice/SyncStatus.tsx +++ b/src/pages/PairDevice/SyncStatus.tsx @@ -1,11 +1,11 @@ import { useEffect, useState } from 'react' import { XStack, YStack } from 'tamagui' import { Button, IconButton, InformationBox, Text } from '@status-im/components' +import { CloseCircleIcon } from '@status-im/icons' import Icon from '../../components/General/Icon' import RefreshBlackIcon from '/icons/refresh-black.svg' import RefreshIcon from '/icons/refresh.svg' -import BlockIcon from '/icons/block.svg' import ConnectionIcon from '/icons/connection.svg' import { convertSecondsToTimerFormat } from '../../utilities' @@ -79,7 +79,7 @@ const SyncStatus = ({ } + icon={} /> )} {isAwaitingPairing && ( From 2320fb4866059d02fc97affc95dd63f91ff2d220 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 09:38:11 +0300 Subject: [PATCH 12/14] fix: delete refresh icons --- public/icons/refresh-black.svg | 6 ------ public/icons/refresh.svg | 5 ----- src/pages/PairDevice/PairDevice.tsx | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 public/icons/refresh-black.svg delete mode 100644 public/icons/refresh.svg diff --git a/public/icons/refresh-black.svg b/public/icons/refresh-black.svg deleted file mode 100644 index feb66937..00000000 --- a/public/icons/refresh-black.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/public/icons/refresh.svg b/public/icons/refresh.svg deleted file mode 100644 index ead09ed3..00000000 --- a/public/icons/refresh.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index 393a4d07..2d97f1cc 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -15,7 +15,7 @@ const PairDevice = () => { const [autoChecked, setAutoChecked] = useState(false) const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) const isPaired = false - const isPairing = true + const isPairing = false const changeSetIsAwaitingPairing = (result: boolean) => { setIsAwaitingPairing(result) From afa54e395096f3ef450d34914eea1e1308bcfe50 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 09:48:49 +0300 Subject: [PATCH 13/14] feat: use new icon and disable it --- src/pages/PairDevice/SyncStatus.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/PairDevice/SyncStatus.tsx b/src/pages/PairDevice/SyncStatus.tsx index d18631e3..e7c689a6 100644 --- a/src/pages/PairDevice/SyncStatus.tsx +++ b/src/pages/PairDevice/SyncStatus.tsx @@ -4,10 +4,9 @@ import { Button, IconButton, InformationBox, Text } from '@status-im/components' import { CloseCircleIcon } from '@status-im/icons' import Icon from '../../components/General/Icon' -import RefreshBlackIcon from '/icons/refresh-black.svg' -import RefreshIcon from '/icons/refresh.svg' import ConnectionIcon from '/icons/connection.svg' import { convertSecondsToTimerFormat } from '../../utilities' +import { RefreshIcon } from '@status-im/icons' type SyncStatusProps = { isPairing: boolean @@ -61,9 +60,10 @@ const SyncStatus = ({ )} } + icon={} onPress={resetTimer} variant="ghost" + disabled={!isPairing} /> {isPairing ? ( From 7acdd1553a11988ba947fc583ac0aa0056ce896f Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 09:57:19 +0300 Subject: [PATCH 14/14] fix: leave self closing tag --- src/pages/PairDevice/PairDevice.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index aec5aa44..b19bb3fc 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -61,7 +61,7 @@ const PairDevice = () => { /> Auto Connect Paired Device - {isPaired && } + {isPaired && }