From be6060ffa5c43aafdd9935b58d35dc39c8338cd1 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 17 Aug 2023 18:14:06 +0300 Subject: [PATCH] fix: remove old components from sync status --- src/pages/PairDevice/SyncStatus.tsx | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/pages/PairDevice/SyncStatus.tsx b/src/pages/PairDevice/SyncStatus.tsx index 17efae46..763239e8 100644 --- a/src/pages/PairDevice/SyncStatus.tsx +++ b/src/pages/PairDevice/SyncStatus.tsx @@ -11,7 +11,6 @@ import { convertSecondsToTimerFormat } from '../../utilities' type SyncStatusProps = { isPairing: boolean - isPairedSuccessfully: boolean isAwaitingPairing?: boolean changeSetIsAwaitingPairing: (isAwaitingPairing: boolean) => void } @@ -20,7 +19,6 @@ const SyncStatus = ({ isPairing, isAwaitingPairing, changeSetIsAwaitingPairing, - isPairedSuccessfully }: SyncStatusProps) => { const [elapsedTime, setElapsedTime] = useState(0) @@ -68,24 +66,15 @@ const SyncStatus = ({ variant="ghost" /> - {!isPairedSuccessfully ? ( - <> - {isPairing ? ( - - Awaiting pairing connection... - - ) : ( - - No pairing input provided. - - )} - + {isPairing ? ( + + Awaiting pairing connection... + ) : ( - - Paired Successfully! 🥳 + + No pairing input provided. )} - {isAwaitingPairing && (