mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(deps): upgrade tailwind and prettier [EE-5218] (#10068)
This commit is contained in:
parent
cb7377ead6
commit
0e2eb17220
69 changed files with 444 additions and 316 deletions
|
@ -84,7 +84,7 @@ export function createPersistedStore<T extends BasicTableSettings>(
|
|||
storageKey: string,
|
||||
initialSortBy?: string | { id: string; desc: boolean },
|
||||
create: (set: ZustandSetFunc<T>) => Omit<T, keyof BasicTableSettings> = () =>
|
||||
({} as T)
|
||||
({}) as T
|
||||
) {
|
||||
return createStore<T>()(
|
||||
persist(
|
||||
|
@ -93,7 +93,7 @@ export function createPersistedStore<T extends BasicTableSettings>(
|
|||
...sortableSettings<T>(set, initialSortBy),
|
||||
...paginationSettings<T>(set),
|
||||
...create(set),
|
||||
} as T),
|
||||
}) as T,
|
||||
{
|
||||
name: `datatable_settings_${keyBuilder(storageKey)}`,
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ export type TableState<TSettings extends BasicTableSettings> = TSettings & {
|
|||
};
|
||||
|
||||
export function useTableState<
|
||||
TSettings extends BasicTableSettings = BasicTableSettings
|
||||
TSettings extends BasicTableSettings = BasicTableSettings,
|
||||
>(
|
||||
store: ReturnType<typeof createPersistedStore<TSettings>>,
|
||||
storageKey: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue