feat: create story for generated id input

This commit is contained in:
RadoslavDimchev 2023-08-18 18:23:04 +03:00
parent db8c4b3ae1
commit 3237787781
1 changed files with 30 additions and 0 deletions

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