fix: change password fields name to key files
This commit is contained in:
parent
6606fb6d4d
commit
82138ee24c
|
@ -1,16 +1,16 @@
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import PasswordFields from './PasswordFields'
|
import KeyFiles from './KeyFiles'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'ValidatorOnboarding/PasswordFields',
|
title: 'ValidatorOnboarding/KeyFiles',
|
||||||
component: PasswordFields,
|
component: KeyFiles,
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
argTypes: {},
|
argTypes: {},
|
||||||
} satisfies Meta<typeof PasswordFields>
|
} satisfies Meta<typeof KeyFiles>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
type Story = StoryObj<typeof meta>
|
type Story = StoryObj<typeof meta>
|
|
@ -5,7 +5,7 @@ import { useState } from 'react'
|
||||||
|
|
||||||
import BorderBox from '../../../components/General/BorderBox'
|
import BorderBox from '../../../components/General/BorderBox'
|
||||||
|
|
||||||
const PasswordFields = () => {
|
const KeyFiles = () => {
|
||||||
const [encryptedPassword, setEncryptedPassword] = useState('')
|
const [encryptedPassword, setEncryptedPassword] = useState('')
|
||||||
const [confirmEncryptedPassword, setConfirmEncryptedPassword] = useState('')
|
const [confirmEncryptedPassword, setConfirmEncryptedPassword] = useState('')
|
||||||
|
|
||||||
|
@ -84,4 +84,4 @@ const PasswordFields = () => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default PasswordFields
|
export default KeyFiles
|
|
@ -2,7 +2,7 @@ import { YStack } from 'tamagui'
|
||||||
import KeyGenerationHeader from './KeyGenerationHeader'
|
import KeyGenerationHeader from './KeyGenerationHeader'
|
||||||
import RecoveryMechanism from './RecoveryMechanism'
|
import RecoveryMechanism from './RecoveryMechanism'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import PasswordFields from './PasswordFields'
|
import KeyFiles from './KeyFiles'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import RecoveryPhrase from './RecoveryPhrase'
|
import RecoveryPhrase from './RecoveryPhrase'
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ const KeyGeneration = () => {
|
||||||
<Text size={27} weight={'semibold'}>
|
<Text size={27} weight={'semibold'}>
|
||||||
4 Validators
|
4 Validators
|
||||||
</Text>
|
</Text>
|
||||||
{selectedRecoveryMechanism === 'Key Files' && <PasswordFields />}
|
{selectedRecoveryMechanism === 'Key Files' && <KeyFiles />}
|
||||||
{selectedRecoveryMechanism === 'Recovery Phrase' && <RecoveryPhrase />}
|
{selectedRecoveryMechanism === 'Recovery Phrase' && <RecoveryPhrase />}
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue