fix: remove old components from sync status

This commit is contained in:
RadoslavDimchev 2023-08-17 18:14:06 +03:00
parent 2049b40185
commit be6060ffa5
1 changed files with 6 additions and 17 deletions

View File

@ -11,7 +11,6 @@ import { convertSecondsToTimerFormat } from '../../utilities'
type SyncStatusProps = { type SyncStatusProps = {
isPairing: boolean isPairing: boolean
isPairedSuccessfully: boolean
isAwaitingPairing?: boolean isAwaitingPairing?: boolean
changeSetIsAwaitingPairing: (isAwaitingPairing: boolean) => void changeSetIsAwaitingPairing: (isAwaitingPairing: boolean) => void
} }
@ -20,7 +19,6 @@ const SyncStatus = ({
isPairing, isPairing,
isAwaitingPairing, isAwaitingPairing,
changeSetIsAwaitingPairing, changeSetIsAwaitingPairing,
isPairedSuccessfully
}: SyncStatusProps) => { }: SyncStatusProps) => {
const [elapsedTime, setElapsedTime] = useState(0) const [elapsedTime, setElapsedTime] = useState(0)
@ -68,8 +66,6 @@ const SyncStatus = ({
variant="ghost" variant="ghost"
/> />
</XStack> </XStack>
{!isPairedSuccessfully ? (
<>
{isPairing ? ( {isPairing ? (
<Text size={15} color={isAwaitingPairing ? '#EB5757' : '#09101C'} weight={'semibold'}> <Text size={15} color={isAwaitingPairing ? '#EB5757' : '#09101C'} weight={'semibold'}>
Awaiting pairing connection... Awaiting pairing connection...
@ -79,13 +75,6 @@ const SyncStatus = ({
No pairing input provided. No pairing input provided.
</Text> </Text>
)} )}
</>
) : (
<Text size={15} color="#2A4AF5" weight={'semibold'}>
Paired Successfully! 🥳
</Text>
)}
{isAwaitingPairing && ( {isAwaitingPairing && (
<InformationBox <InformationBox
message="No connection has been created to a Nimbus service for over 3 minutes. Please ensure that the generated pairing ID was input into the CLI. If you are unable to pair device, consider connect via IP. " message="No connection has been created to a Nimbus service for over 3 minutes. Please ensure that the generated pairing ID was input into the CLI. If you are unable to pair device, consider connect via IP. "