feat(panel-image): create story with two examples

This commit is contained in:
RadoslavDimchev 2024-04-16 12:54:37 +03:00 committed by Radoslav Dimchev
parent 479750829b
commit 22a0b212d2
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import PanelImage from './PanelImage'
const meta = {
title: 'ManageValidator/PanelImage',
component: PanelImage,
decorators: [withRouter()],
tags: ['autodocs'],
} satisfies Meta<typeof PanelImage>
export default meta
type Story = StoryObj<typeof meta>
export const MigratePanelImage: Story = {
args: {
imagePath: 'migrate.png',
text: 'You are about to Migrate your validator it is not possible for you to revert this action! Please make sure you understand the consequences.',
},
}
export const ExitPanelImage: Story = {
args: {
imagePath: 'exit-validator.png',
text: 'You are about to Exit your validator it is not possible for you to revert this action! Please make sure you understand the consequences.',
},
}