Merge remote-tracking branch 'origin/ui' into main-demo
This commit is contained in:
@@ -638,7 +638,21 @@ export const useSelectedPath = create<any>((set: any) => ({
|
||||
selectedPath: "auto",
|
||||
setSelectedPath: (x: any) => set({ selectedPath: x }),
|
||||
}));
|
||||
|
||||
export const useContextActionStore = create<any>((set: any) => ({
|
||||
contextAction: null,
|
||||
setContextAction: (x: any) => set({ contextAction: x }),
|
||||
}));
|
||||
|
||||
|
||||
// Define the store's state and actions type
|
||||
interface DecalStore {
|
||||
selectedSubCategory: string;
|
||||
setSelectedSubCategory: (subCategory: string) => void;
|
||||
}
|
||||
|
||||
// Create the Zustand store with types
|
||||
export const useDecalStore = create<DecalStore>((set) => ({
|
||||
selectedSubCategory: '',
|
||||
setSelectedSubCategory: (subCategory: string) => set({ selectedSubCategory: subCategory }),
|
||||
}));
|
||||
|
||||
@@ -14,7 +14,7 @@ export default useModuleStore;
|
||||
|
||||
// New store for subModule
|
||||
|
||||
type SubModule = 'properties' | 'simulations' | 'mechanics' | 'analysis' | 'zoneProperties';
|
||||
type SubModule = 'properties' | 'simulations' | 'mechanics' | 'analysis' | 'zoneProperties'|"resourceManagement";
|
||||
|
||||
interface SubModuleStore {
|
||||
subModule: SubModule;
|
||||
|
||||
Reference in New Issue
Block a user