Refactor SideBarRight component for improved readability and functionality; add DecalProperties component; remove DecalTransformation; update AssetProperties animations rendering; enhance InputRange and RegularDropDown components; adjust styles for better layout; fix state management in decal store.

This commit is contained in:
2025-08-23 15:43:19 +05:30
parent d7295ebacf
commit e2c5b43c2e
15 changed files with 741 additions and 739 deletions

View File

@@ -647,12 +647,12 @@ export const useContextActionStore = create<any>((set: any) => ({
// Define the store's state and actions type
interface DecalStore {
selectedSubCategory: string;
setSelectedSubCategory: (subCategory: string) => void;
selectedSubCategory: string | null;
setSelectedSubCategory: (subCategory: string | null) => void;
}
// Create the Zustand store with types
export const useDecalStore = create<DecalStore>((set) => ({
selectedSubCategory: '',
setSelectedSubCategory: (subCategory: string) => set({ selectedSubCategory: subCategory }),
selectedSubCategory: null,
setSelectedSubCategory: (subCategory: string | null) => set({ selectedSubCategory: subCategory }),
}));