From 810837c6cf3e4fb0f010a10dda066870e2ad2f26 Mon Sep 17 00:00:00 2001 From: devgioele Date: Tue, 19 Sep 2023 10:40:13 +0200 Subject: [PATCH] move useFilter to components/filter --- src/components/filter/index.ts | 1 + src/components/{util => filter}/useFilter.ts | 0 src/components/index.ts | 1 + src/components/util/index.ts | 1 - src/examples/List.stories.tsx | 4 ++-- 5 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/components/filter/index.ts rename src/components/{util => filter}/useFilter.ts (100%) diff --git a/src/components/filter/index.ts b/src/components/filter/index.ts new file mode 100644 index 00000000..d67773a7 --- /dev/null +++ b/src/components/filter/index.ts @@ -0,0 +1 @@ +export * from './useFilter' diff --git a/src/components/util/useFilter.ts b/src/components/filter/useFilter.ts similarity index 100% rename from src/components/util/useFilter.ts rename to src/components/filter/useFilter.ts diff --git a/src/components/index.ts b/src/components/index.ts index 9d9d5de3..f1d86c63 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -14,4 +14,5 @@ export * from './react-hook-form' export * from './section' export * from './tabs' export * from './types' +export * from './filter' export * from './util' diff --git a/src/components/util/index.ts b/src/components/util/index.ts index c5507fa0..60501966 100644 --- a/src/components/util/index.ts +++ b/src/components/util/index.ts @@ -7,4 +7,3 @@ export * from './useHandleRequest' export * from './useId' export * from './useScrollToElementOnFristRender' export * from './useBackNavigation' -export * from './useFilter' diff --git a/src/examples/List.stories.tsx b/src/examples/List.stories.tsx index 5ede568b..decaaab7 100644 --- a/src/examples/List.stories.tsx +++ b/src/examples/List.stories.tsx @@ -27,9 +27,9 @@ import { SelectField, Tone, Option, + useFilter, + SearchField, } from '../components' -import { SearchField } from '../components/form/SearchField' -import { useFilter } from '../components/util/useFilter' const meta = { component: SectionContentList,