1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

refactor(kube/volumes): migrate to react [EE-4695] (#10987)

This commit is contained in:
Chaim Lev-Ari 2024-04-02 22:10:22 +03:00 committed by GitHub
parent 2b53bebcb3
commit da615afc92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 347 additions and 397 deletions

View file

@ -25,8 +25,8 @@ export function useTableState<
);
}
export function useTableStateWithStorage(
...args: Parameters<typeof createPersistedStore>
export function useTableStateWithStorage<T extends BasicTableSettings>(
...args: Parameters<typeof createPersistedStore<T>>
) {
const [store] = useState(() => createPersistedStore(...args));
return useTableState(store, args[0]);