mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-23 01:38:57 +00:00
feat: create story for generated id input
This commit is contained in:
parent
db8c4b3ae1
commit
3237787781
30
src/pages/PairDevice/GenerateId.stories.tsx
Normal file
30
src/pages/PairDevice/GenerateId.stories.tsx
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import GenerateId from './GenerateId'
|
||||||
|
|
||||||
|
// TODO: story crashes because of Link component (tried with useNavigate hook, but it is same)
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'Pair Device/GenerateId',
|
||||||
|
component: GenerateId,
|
||||||
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
|
tags: ['autodocs'],
|
||||||
|
argTypes: {},
|
||||||
|
} satisfies Meta<typeof GenerateId>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const GenerateIdNotAwaiting: Story = {
|
||||||
|
args: {
|
||||||
|
isAwaitingPairing: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const GenerateIdAwaiting: Story = {
|
||||||
|
args: {
|
||||||
|
isAwaitingPairing: true,
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user