catalog connected to backend
This commit is contained in:
@@ -4,6 +4,7 @@ import { create } from "zustand";
|
||||
interface SubCategoryZustandType {
|
||||
subCategory: SubCategoryType;
|
||||
setSubCategory: (subCategory: SubCategoryType) => void;
|
||||
clearSubCategory: () => void;
|
||||
}
|
||||
|
||||
const demoSubCategory = {
|
||||
@@ -15,4 +16,5 @@ const demoSubCategory = {
|
||||
export const useSubCategory = create<SubCategoryZustandType>((set) => ({
|
||||
subCategory: demoSubCategory,
|
||||
setSubCategory: (data) => set({ subCategory: data }),
|
||||
clearSubCategory: () => set({ subCategory: demoSubCategory }),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user