refactor(FE): Add table state management with path grouping logic

This commit is contained in:
rstubryan
2026-03-03 10:33:03 +07:00
parent cbab7f52f2
commit 3d2e40518b
3 changed files with 63 additions and 5 deletions
+8
View File
@@ -28,9 +28,17 @@ type DrawerUISlice = {
};
type TableUISlice = {
// State
key: string;
path: string;
searchValue: string;
previousPath: string | null;
// Actions
setSearchValue: (value: string) => void;
resetSearchValue: () => void;
setTableState: (key: string, path: string, searchValue?: string) => void;
resetTableState: () => void;
};
// Navbar Actions Slice