This commit is contained in:
Hristo Nedelkov 2023-08-16 14:01:33 +03:00
parent b6926866ca
commit db931f2562
1 changed files with 13 additions and 10 deletions

View File

@ -5,6 +5,7 @@ import RefreshBlackIcon from '/icons/refresh-black.svg'
import RefreshIcon from '/icons/refresh.svg' import RefreshIcon from '/icons/refresh.svg'
import BlockIcon from '/icons/block.svg' import BlockIcon from '/icons/block.svg'
import ConnectionIcon from '/icons/connection.svg' import ConnectionIcon from '/icons/connection.svg'
import { useState } from 'react'
type SyncStatusProps = { type SyncStatusProps = {
isPairing: boolean isPairing: boolean
@ -40,17 +41,19 @@ const SyncStatus = ({ isPairing, timer, isAwaitingPairing }: SyncStatusProps) =>
</Text> </Text>
)} )}
{isAwaitingPairing && ( {isAwaitingPairing && (
<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. " <InformationBox
variant="error" 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. "
icon={<Icon src={BlockIcon} />} variant="error"
/> icon={<Icon src={BlockIcon} />}
/>
<XStack>
<Button icon={<Icon src={ConnectionIcon} />} size={40}>
Connect via IP
</Button>
</XStack>
</>
)} )}
<XStack>
<Button icon={<Icon src={ConnectionIcon} />} size={40}>
Connect via IP
</Button>
</XStack>
</YStack> </YStack>
) )
} }