fix: remove old components from sync status
This commit is contained in:
parent
2049b40185
commit
be6060ffa5
|
@ -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,24 +66,15 @@ const SyncStatus = ({
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
/>
|
/>
|
||||||
</XStack>
|
</XStack>
|
||||||
{!isPairedSuccessfully ? (
|
{isPairing ? (
|
||||||
<>
|
<Text size={15} color={isAwaitingPairing ? '#EB5757' : '#09101C'} weight={'semibold'}>
|
||||||
{isPairing ? (
|
Awaiting pairing connection...
|
||||||
<Text size={15} color={isAwaitingPairing ? '#EB5757' : '#09101C'} weight={'semibold'}>
|
</Text>
|
||||||
Awaiting pairing connection...
|
|
||||||
</Text>
|
|
||||||
) : (
|
|
||||||
<Text size={13} color="#A1ABBD">
|
|
||||||
No pairing input provided.
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
) : (
|
) : (
|
||||||
<Text size={15} color="#2A4AF5" weight={'semibold'}>
|
<Text size={13} color="#A1ABBD">
|
||||||
Paired Successfully! 🥳
|
No pairing input provided.
|
||||||
</Text>
|
</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. "
|
||||||
|
|
Loading…
Reference in New Issue