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

View File

@ -27,6 +27,14 @@
grid-template-columns: repeat(6, 1fr); 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) { @media (max-width: 630px) {
.recovery-mechanism-container > div { .recovery-mechanism-container > div {
min-width: 40%; min-width: 40%;