feat: add blur phrases with handler and sizes

This commit is contained in:
RadoslavDimchev 2023-08-29 10:36:10 +03:00
parent 7b9999d708
commit 851448cca7
1 changed files with 28 additions and 4 deletions

View File

@ -1,11 +1,35 @@
import { YStack } from 'tamagui'
import { Button, InformationBox } from '@status-im/components'
import { Stack, YStack } from 'tamagui'
import { Button, InformationBox, Text } from '@status-im/components'
import { CloseCircleIcon } from '@status-im/icons'
import { useState } from 'react'
const RecoveryPhrase = () => {
const [isReveal, setIsReveal] = useState(false)
const revealHandler = () => {
setIsReveal(state => !state)
}
return (
<YStack space={'$2'}>
<Button>Reveal Recovery Phrase</Button>
<YStack space={'$4'} style={{ width: '100%' }}>
<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
message="Write down and keep your Secret Recovery Phrase in a secure place. Make sure no one is looking at your screen."
variant="error"