Merge remote-tracking branch 'origin/ui' into main-demo

This commit is contained in:
2025-08-22 13:01:25 +05:30
34 changed files with 1945 additions and 71 deletions

View File

@@ -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 }),
}));

View File

@@ -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;