From 168e100a7a567d3b64941567b9cbb64211e80596 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Wed, 16 Aug 2023 12:11:39 +0300 Subject: [PATCH] Add third state of component --- public/icons/block.svg | 10 +++++++++ src/pages/PairDevice/PairDevice.tsx | 2 +- src/pages/PairDevice/SyncStatus.tsx | 35 +++++++++++++++++++++++------ 3 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 public/icons/block.svg diff --git a/public/icons/block.svg b/public/icons/block.svg new file mode 100644 index 00000000..4a98b7a2 --- /dev/null +++ b/public/icons/block.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index f455a2e8..89813d4e 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -11,7 +11,7 @@ const PairDevice = () => { maxWidth: '100%', }} > - + ) diff --git a/src/pages/PairDevice/SyncStatus.tsx b/src/pages/PairDevice/SyncStatus.tsx index d387b6a2..f78821d8 100644 --- a/src/pages/PairDevice/SyncStatus.tsx +++ b/src/pages/PairDevice/SyncStatus.tsx @@ -1,11 +1,15 @@ import { XStack, YStack } from 'tamagui' -import { Text } from '@status-im/components' +import { InformationBox, Text } from '@status-im/components' 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' type SyncStatusProps = { isPairing: boolean timer: string + isAwaitingPairing?: boolean } -const SyncStatus = ({ isPairing, timer }: SyncStatusProps) => { +const SyncStatus = ({ isPairing, timer, isAwaitingPairing }: SyncStatusProps) => { return ( @@ -13,21 +17,38 @@ const SyncStatus = ({ isPairing, timer }: SyncStatusProps) => { Device Sync Status {isPairing && ( - + {timer} )} - + {isPairing ? ( - - Awaiting pairing connection... - + isAwaitingPairing ? ( + + Awaiting Pairing{' '} + + ) : ( + + Awaiting pairing connection... + + ) ) : ( No pairing input provided. )} + {isAwaitingPairing && ( + } + /> + )} ) }