feat: add blur phrases with handler and sizes
This commit is contained in:
parent
7b9999d708
commit
851448cca7
|
@ -1,11 +1,35 @@
|
||||||
import { YStack } from 'tamagui'
|
import { Stack, YStack } from 'tamagui'
|
||||||
import { Button, InformationBox } from '@status-im/components'
|
import { Button, InformationBox, Text } from '@status-im/components'
|
||||||
import { CloseCircleIcon } from '@status-im/icons'
|
import { CloseCircleIcon } from '@status-im/icons'
|
||||||
|
import { useState } from 'react'
|
||||||
|
|
||||||
const RecoveryPhrase = () => {
|
const RecoveryPhrase = () => {
|
||||||
|
const [isReveal, setIsReveal] = useState(false)
|
||||||
|
|
||||||
|
const revealHandler = () => {
|
||||||
|
setIsReveal(state => !state)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$4'} style={{ width: '100%' }}>
|
||||||
<Button>Reveal Recovery Phrase</Button>
|
<Stack
|
||||||
|
style={{
|
||||||
|
border: `1px solid #2A4AF566`,
|
||||||
|
borderRadius: '16px',
|
||||||
|
padding: '12px 16px',
|
||||||
|
backgroundColor: '#f4f6fe',
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Stack style={{ filter: `blur(${isReveal ? '0px' : '4px'})` }}>
|
||||||
|
<Text size={15} weight={'semibold'}>
|
||||||
|
asdf
|
||||||
|
</Text>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
|
<Stack style={{ width: 'fit-content', marginBottom: '12px' }}>
|
||||||
|
<Button onPress={revealHandler}>Reveal Recovery Phrase</Button>
|
||||||
|
</Stack>
|
||||||
<InformationBox
|
<InformationBox
|
||||||
message="Write down and keep your Secret Recovery Phrase in a secure place. Make sure no one is looking at your screen."
|
message="Write down and keep your Secret Recovery Phrase in a secure place. Make sure no one is looking at your screen."
|
||||||
variant="error"
|
variant="error"
|
||||||
|
|
Loading…
Reference in New Issue