feat: create story for continue button

This commit is contained in:
RadoslavDimchev 2023-09-07 15:50:52 +03:00
parent 569fe2c43f
commit a198711b24
1 changed files with 33 additions and 0 deletions

View 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,
},
}