From 84d6f9fd87ee2bd8baa2ca8efd656d07e9e78264 Mon Sep 17 00:00:00 2001 From: devgioele Date: Mon, 11 Sep 2023 11:57:24 +0200 Subject: [PATCH] remove FilterForm from stories of SearchFormField --- .../SearchFormField.stories.tsx | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/components/react-hook-form/SearchFormField.stories.tsx b/src/components/react-hook-form/SearchFormField.stories.tsx index fc439635..e069767f 100644 --- a/src/components/react-hook-form/SearchFormField.stories.tsx +++ b/src/components/react-hook-form/SearchFormField.stories.tsx @@ -8,13 +8,14 @@ import { Title, } from '@storybook/blocks' import { action } from '@storybook/addon-actions' +import { useForm } from 'react-hook-form' import { InternationalizationMessages, Theme, } from '../../../.storybook/components' import { Section, SectionHeaderArea } from '../section' import { SearchFormField } from './SearchFormField' -import { FilterForm } from './FilterForm' +import { Form } from './Form' const meta = { component: SearchFormField, @@ -22,18 +23,20 @@ const meta = { disabled: { type: 'boolean' }, }, decorators: [ - (Story) => ( -
- - - - - -
- ), + (Story) => { + const form = useForm({ + defaultValues: { search: '' }, + }) + return ( +
+ +
+ + +
+
+ ) + }, ], parameters: { docs: {