feat: move confirm recovery phrase into css module
This commit is contained in:
parent
e0f17e5261
commit
97c0b76acd
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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%;
|
||||||
|
|
Loading…
Reference in New Issue