From 3237787781ef876e3e114a43ad448a9fe0c1cf21 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 18 Aug 2023 18:23:04 +0300 Subject: [PATCH] feat: create story for generated id input --- src/pages/PairDevice/GenerateId.stories.tsx | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/pages/PairDevice/GenerateId.stories.tsx diff --git a/src/pages/PairDevice/GenerateId.stories.tsx b/src/pages/PairDevice/GenerateId.stories.tsx new file mode 100644 index 00000000..7669f1d0 --- /dev/null +++ b/src/pages/PairDevice/GenerateId.stories.tsx @@ -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 + +export default meta +type Story = StoryObj + +export const GenerateIdNotAwaiting: Story = { + args: { + isAwaitingPairing: false, + }, +} + +export const GenerateIdAwaiting: Story = { + args: { + isAwaitingPairing: true, + }, +}