feat: add examples for rec mechanism card story

This commit is contained in:
RadoslavDimchev 2023-10-08 22:44:02 +03:00
parent c9b3ef3fca
commit 83c633cc18

View File

@ -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,