From 9fa1e3d383f74ac1f50590c7fd1b485aac1ed5be Mon Sep 17 00:00:00 2001 From: franco sanchez Date: Thu, 22 Aug 2024 11:08:24 -0300 Subject: [PATCH] chore: the store folder was created --- src/components/Categories.tsx | 2 +- src/{contexts/categoryStore.ts => store/useCategoryStore.ts} | 0 tsconfig.json | 1 + vite.config.ts | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) rename src/{contexts/categoryStore.ts => store/useCategoryStore.ts} (100%) diff --git a/src/components/Categories.tsx b/src/components/Categories.tsx index afe813a..f1bc830 100644 --- a/src/components/Categories.tsx +++ b/src/components/Categories.tsx @@ -5,7 +5,7 @@ import { BsTag } from 'react-icons/bs'; import { MyTag } from '@components/ui/MyTag'; import { useAllFilterOptions } from '@hooks/queries'; -import { useCategoryStore } from '@contexts/categoryStore'; +import { useCategoryStore } from '@store/useCategoryStore'; export default function Categories() { const { data } = useAllFilterOptions(); diff --git a/src/contexts/categoryStore.ts b/src/store/useCategoryStore.ts similarity index 100% rename from src/contexts/categoryStore.ts rename to src/store/useCategoryStore.ts diff --git a/tsconfig.json b/tsconfig.json index bdd9559..1a8bc24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,6 +24,7 @@ "@assets/*": ["./assets/*"], "@components/*": ["./components/*"], "@contexts/*": ["./contexts/*"], + "@store/*": ["./store/*"], "@hooks/*": ["./hooks/*"], "@services/*": ["./services/*"], "@pages/*": ["./pages/*"], diff --git a/vite.config.ts b/vite.config.ts index 800fcb3..c03feee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -81,6 +81,7 @@ export default defineConfig({ '@assets': path.resolve(__dirname, 'src/assets'), '@components': path.resolve(__dirname, 'src/components'), '@contexts': path.resolve(__dirname, 'src/contexts'), + '@store': path.resolve(__dirname, 'src/store'), '@hooks': path.resolve(__dirname, 'src/hooks'), '@services': path.resolve(__dirname, 'src/services'), '@pages': path.resolve(__dirname, 'src/pages'),