Create second state

This commit is contained in:
Hristo Nedelkov 2023-08-16 11:41:37 +03:00
parent 7c4d094e5d
commit 7cd68fac93
2 changed files with 20 additions and 5 deletions

View File

@ -11,7 +11,7 @@ const PairDevice = () => {
maxWidth: '100%',
}}
>
<SyncStatus />
<SyncStatus isPairing={true} timer={'00:12'} />
</YStack>
</PageWrapperShadow>
)

View File

@ -1,18 +1,33 @@
import { XStack, YStack } from 'tamagui'
import { Text } from '@status-im/components'
import Icon from '../../components/General/Icon'
const SyncStatus = () => {
type SyncStatusProps = {
isPairing: boolean
timer: string
}
const SyncStatus = ({ isPairing, timer }: SyncStatusProps) => {
return (
<YStack style={{ width: '584px' }}>
<XStack space={'$4'} style={{ justifyContent: 'space-between' }}>
<Text size={11} color="#647084" weight="medium">
Device Sync Status
</Text>
{isPairing && (
<Text size={11} color="#647084">
{timer}
</Text>
)}
<Icon src="/icons/refresh.svg" />
</XStack>
<Text size={13} color="#A1ABBD" >
{isPairing ? (
<Text size={15} color="#09101C" weight={'semibold'}>
Awaiting pairing connection...
</Text>
) : (
<Text size={13} color="#A1ABBD">
No pairing input provided.
</Text>
)}
</YStack>
)
}