mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-28 02:50:45 +00:00
feat(panel-image): create story with two examples
This commit is contained in:
parent
479750829b
commit
22a0b212d2
@ -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.',
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user