mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
refactor(edge/jobs): migrate results table to react [EE-4679] (#10663)
This commit is contained in:
parent
dc9d7ae3f1
commit
d88ef03ddb
14 changed files with 223 additions and 139 deletions
|
@ -0,0 +1,14 @@
|
|||
import {
|
||||
refreshableSettings,
|
||||
createPersistedStore,
|
||||
BasicTableSettings,
|
||||
RefreshableTableSettings,
|
||||
} from '@@/datatables/types';
|
||||
|
||||
interface TableSettings extends BasicTableSettings, RefreshableTableSettings {}
|
||||
|
||||
export function createStore(storageKey: string) {
|
||||
return createPersistedStore<TableSettings>(storageKey, undefined, (set) => ({
|
||||
...refreshableSettings(set),
|
||||
}));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue