mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
refactor(docker/stacks): migrate table to react [EE-4705] (#9956)
This commit is contained in:
parent
c3d266931f
commit
c8a1f0fa77
43 changed files with 1127 additions and 492 deletions
|
@ -3,9 +3,12 @@ import { TableOptions } from '@tanstack/react-table';
|
|||
import { defaultGlobalFilterFn } from '../Datatable';
|
||||
import { DefaultType } from '../types';
|
||||
|
||||
export function withGlobalFilter<D extends DefaultType>(
|
||||
filterFn: typeof defaultGlobalFilterFn
|
||||
) {
|
||||
export function withGlobalFilter<
|
||||
D extends DefaultType,
|
||||
TFilter extends {
|
||||
search: string;
|
||||
},
|
||||
>(filterFn: typeof defaultGlobalFilterFn<D, TFilter>) {
|
||||
return function extendOptions(options: TableOptions<D>) {
|
||||
return {
|
||||
...options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue