From fdf655442f2e24792f62f55194e1bad605b0f196 Mon Sep 17 00:00:00 2001 From: trevor-anderson Date: Sat, 9 Mar 2024 10:01:17 -0500 Subject: [PATCH] fix(sb): add SelectProps type params to BasicDemo --- src/components/Form/inputs/Select.stories.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Form/inputs/Select.stories.tsx b/src/components/Form/inputs/Select.stories.tsx index 7199f607..88432519 100644 --- a/src/components/Form/inputs/Select.stories.tsx +++ b/src/components/Form/inputs/Select.stories.tsx @@ -23,7 +23,11 @@ export default meta; /////////////////////////////////////////////////////////// // STORIES -type Story = StoryObj; +/** + * - **Q:** Why not use `type Story = StoryObj`? + * - **A:** Such a `Story` type would not be re-usable across multiple `Select` stories + * due to the component's type params, e.g., `SelectProps`. + */ export const BasicDemo = { args: { @@ -37,4 +41,5 @@ export const BasicDemo = { initialValues: { food: null }, }, }, -} satisfies Story; +} satisfies StoryObj & FormDecoratorArgs>>; +