mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-21 08:49:41 +00:00
feat: create story for continue button
This commit is contained in:
parent
569fe2c43f
commit
a198711b24
33
src/pages/ValidatorOnboarding/ContinueButton.stories.ts
Normal file
33
src/pages/ValidatorOnboarding/ContinueButton.stories.ts
Normal file
@ -0,0 +1,33 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ContinueButton from './ContinueButton'
|
||||
|
||||
const meta = {
|
||||
title: 'ValidatorOnboarding/ContinueButton',
|
||||
component: ContinueButton,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter],
|
||||
} satisfies Meta<typeof ContinueButton>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
continueHandler: () => {},
|
||||
activeStep: 0,
|
||||
isConfirmPhraseStage: false,
|
||||
},
|
||||
}
|
||||
|
||||
export const Disabled: Story = {
|
||||
args: {
|
||||
continueHandler: () => {},
|
||||
activeStep: 0,
|
||||
isConfirmPhraseStage: true,
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user