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'),