From 82138ee24cf029ba466c0f67a0646b2dfc35b2ee Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 29 Aug 2023 09:22:17 +0300 Subject: [PATCH] fix: change password fields name to key files --- .../{PasswordFields.stories.ts => KeyFiles.stories.ts} | 8 ++++---- .../KeyGeneration/{PasswordFields.tsx => KeyFiles.tsx} | 4 ++-- .../ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/pages/ValidatorOnboarding/KeyGeneration/{PasswordFields.stories.ts => KeyFiles.stories.ts} (61%) rename src/pages/ValidatorOnboarding/KeyGeneration/{PasswordFields.tsx => KeyFiles.tsx} (97%) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.stories.ts similarity index 61% rename from src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.stories.ts index 3c516369..c6149731 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.stories.ts +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.stories.ts @@ -1,16 +1,16 @@ import type { Meta, StoryObj } from '@storybook/react' -import PasswordFields from './PasswordFields' +import KeyFiles from './KeyFiles' const meta = { - title: 'ValidatorOnboarding/PasswordFields', - component: PasswordFields, + title: 'ValidatorOnboarding/KeyFiles', + component: KeyFiles, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: {}, -} satisfies Meta +} satisfies Meta export default meta type Story = StoryObj diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.tsx similarity index 97% rename from src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.tsx index 067f779a..d4966d30 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/PasswordFields.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyFiles.tsx @@ -5,7 +5,7 @@ import { useState } from 'react' import BorderBox from '../../../components/General/BorderBox' -const PasswordFields = () => { +const KeyFiles = () => { const [encryptedPassword, setEncryptedPassword] = useState('') const [confirmEncryptedPassword, setConfirmEncryptedPassword] = useState('') @@ -84,4 +84,4 @@ const PasswordFields = () => { ) } -export default PasswordFields +export default KeyFiles diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx index deba084c..8d35ccb5 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx @@ -2,7 +2,7 @@ import { YStack } from 'tamagui' import KeyGenerationHeader from './KeyGenerationHeader' import RecoveryMechanism from './RecoveryMechanism' import { Text } from '@status-im/components' -import PasswordFields from './PasswordFields' +import KeyFiles from './KeyFiles' import { useState } from 'react' import RecoveryPhrase from './RecoveryPhrase' @@ -23,7 +23,7 @@ const KeyGeneration = () => { 4 Validators - {selectedRecoveryMechanism === 'Key Files' && } + {selectedRecoveryMechanism === 'Key Files' && } {selectedRecoveryMechanism === 'Recovery Phrase' && } )