feat: move confirm recovery phrase into css module

This commit is contained in:
RadoslavDimchev 2024-01-12 19:39:28 +02:00
parent e0f17e5261
commit 97c0b76acd
2 changed files with 13 additions and 12 deletions

View File

@ -1,10 +1,11 @@
import { Stack, YStack } from 'tamagui'
import { YStack } from 'tamagui'
import { Text } from '@status-im/components'
import { useSelector } from 'react-redux'
import AutocompleteInput from './AutocompleteInput'
import KeyGenerationTitle from '../KeyGenerationTitle'
import { useSelector } from 'react-redux'
import { RootState } from '../../../../redux/store'
import styles from '../index.module.css'
const ConfirmRecoveryPhrase = () => {
const { validWords } = useSelector((state: RootState) => state.keyGeneration)
@ -13,19 +14,11 @@ const ConfirmRecoveryPhrase = () => {
<YStack space={'$3'} style={{ width: '100%', marginTop: '20px' }}>
<KeyGenerationTitle />
<Text size={19}>Confirm Recovery Phrase</Text>
<Stack
style={{
display: 'grid',
gridTemplateColumns: 'repeat(4, 1fr)',
gap: '20px 40px',
width: '72%',
marginBottom: '10px',
}}
>
<div className={styles['confirm-recovery-phrase']}>
{validWords.map((_, index) => (
<AutocompleteInput key={index} index={index} />
))}
</Stack>
</div>
</YStack>
)
}

View File

@ -27,6 +27,14 @@
grid-template-columns: repeat(6, 1fr);
}
.confirm-recovery-phrase {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px 40px;
width: 72%;
margin-bottom: 10px;
}
@media (max-width: 630px) {
.recovery-mechanism-container > div {
min-width: 40%;