Create second state
This commit is contained in:
parent
7c4d094e5d
commit
7cd68fac93
|
@ -11,7 +11,7 @@ const PairDevice = () => {
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SyncStatus />
|
<SyncStatus isPairing={true} timer={'00:12'} />
|
||||||
</YStack>
|
</YStack>
|
||||||
</PageWrapperShadow>
|
</PageWrapperShadow>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,18 +1,33 @@
|
||||||
import { XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import Icon from '../../components/General/Icon'
|
import Icon from '../../components/General/Icon'
|
||||||
const SyncStatus = () => {
|
type SyncStatusProps = {
|
||||||
|
isPairing: boolean
|
||||||
|
timer: string
|
||||||
|
}
|
||||||
|
const SyncStatus = ({ isPairing, timer }: SyncStatusProps) => {
|
||||||
return (
|
return (
|
||||||
<YStack style={{ width: '584px' }}>
|
<YStack style={{ width: '584px' }}>
|
||||||
<XStack space={'$4'} style={{ justifyContent: 'space-between' }}>
|
<XStack space={'$4'} style={{ justifyContent: 'space-between' }}>
|
||||||
<Text size={11} color="#647084" weight="medium">
|
<Text size={11} color="#647084" weight="medium">
|
||||||
Device Sync Status
|
Device Sync Status
|
||||||
</Text>
|
</Text>
|
||||||
|
{isPairing && (
|
||||||
|
<Text size={11} color="#647084">
|
||||||
|
{timer}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
<Icon src="/icons/refresh.svg" />
|
<Icon src="/icons/refresh.svg" />
|
||||||
</XStack>
|
</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.
|
No pairing input provided.
|
||||||
</Text>
|
</Text>
|
||||||
|
)}
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue