mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 10:03:36 +00:00
feat: add examples for rec mechanism card story
This commit is contained in:
parent
c9b3ef3fca
commit
83c633cc18
@ -1,7 +1,7 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import RecoveryMechanismCard from './RecoveryMechanismCard'
|
||||
import { KEYSTORE_FILES } from '../../../../constants'
|
||||
import { BOTH_KEY_AND_RECOVERY, KEYSTORE_FILES, RECOVERY_PHRASE } from '../../../../constants'
|
||||
|
||||
const meta = {
|
||||
title: 'ValidatorOnboarding/RecoveryMechanismCard',
|
||||
@ -15,13 +15,27 @@ const meta = {
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Selected: Story = {
|
||||
export const KeystoreFiles: Story = {
|
||||
args: {
|
||||
value: KEYSTORE_FILES,
|
||||
recoveryMechanism: KEYSTORE_FILES,
|
||||
},
|
||||
}
|
||||
|
||||
export const RecoveryPhrase: Story = {
|
||||
args: {
|
||||
value: RECOVERY_PHRASE,
|
||||
recoveryMechanism: RECOVERY_PHRASE,
|
||||
},
|
||||
}
|
||||
|
||||
export const BothKeyAndRecovery: Story = {
|
||||
args: {
|
||||
value: BOTH_KEY_AND_RECOVERY,
|
||||
recoveryMechanism: BOTH_KEY_AND_RECOVERY,
|
||||
},
|
||||
}
|
||||
|
||||
export const NotSelected: Story = {
|
||||
args: {
|
||||
value: KEYSTORE_FILES,
|
||||
|
Loading…
x
Reference in New Issue
Block a user