feat: move style for recovery phrase into css module
This commit is contained in:
parent
d1f73631b4
commit
3585ea6804
|
@ -8,6 +8,7 @@ import wordlist from 'web-bip39/wordlists/english'
|
||||||
|
|
||||||
import { RootState } from '../../../redux/store'
|
import { RootState } from '../../../redux/store'
|
||||||
import { setGeneratedMnemonic } from '../../../redux/ValidatorOnboarding/KeyGeneration/slice'
|
import { setGeneratedMnemonic } from '../../../redux/ValidatorOnboarding/KeyGeneration/slice'
|
||||||
|
import styles from './index.module.css'
|
||||||
|
|
||||||
type RecoveryPhraseProps = {
|
type RecoveryPhraseProps = {
|
||||||
isKeystoreFiles: boolean
|
isKeystoreFiles: boolean
|
||||||
|
@ -54,15 +55,11 @@ const RecoveryPhrase = ({ isKeystoreFiles }: RecoveryPhraseProps) => {
|
||||||
}}
|
}}
|
||||||
onClick={copyRecoveryPhraseHandler}
|
onClick={copyRecoveryPhraseHandler}
|
||||||
>
|
>
|
||||||
<Stack
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'grid',
|
|
||||||
gridTemplateColumns: 'repeat(6, 1fr)',
|
|
||||||
gap: '5px 3px',
|
|
||||||
width: '100%',
|
|
||||||
filter: `blur(${isReveal ? '0px' : '4px'})`,
|
filter: `blur(${isReveal ? '0px' : '4px'})`,
|
||||||
padding: '28px 0px 0px 18px',
|
|
||||||
}}
|
}}
|
||||||
|
className={styles['recovery-phrase']}
|
||||||
>
|
>
|
||||||
{generatedMnemonic.map((word, index) => (
|
{generatedMnemonic.map((word, index) => (
|
||||||
<XStack style={{ width: '100%' }}>
|
<XStack style={{ width: '100%' }}>
|
||||||
|
@ -76,7 +73,7 @@ const RecoveryPhrase = ({ isKeystoreFiles }: RecoveryPhraseProps) => {
|
||||||
</Text>
|
</Text>
|
||||||
</XStack>
|
</XStack>
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</div>
|
||||||
{isCopied ? <CheckIcon size={20} /> : <CopyIcon size={20} />}
|
{isCopied ? <CheckIcon size={20} /> : <CopyIcon size={20} />}
|
||||||
</YStack>
|
</YStack>
|
||||||
<Stack style={{ width: 'fit-content', marginBottom: '12px' }}>
|
<Stack style={{ width: 'fit-content', marginBottom: '12px' }}>
|
||||||
|
|
|
@ -19,6 +19,14 @@
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recovery-phrase {
|
||||||
|
display: grid;
|
||||||
|
gap: 5px 3px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 28px 0px 0px 18px;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
@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