refactor(docker/services): convert service tasks table to react [EE-4337]
Test / test-client (push) Has been cancelled
Test / test-server (push) Has been cancelled

close [EE-4337]
This commit is contained in:
Chaim Lev-Ari
2023-08-28 14:40:58 +02:00
parent 0ee6c5c6e9
commit 8ab739adfd
29 changed files with 511 additions and 327 deletions
@@ -23,6 +23,11 @@ interface Props<D extends DefaultType> {
initialTableState?: Partial<TableState>;
isLoading?: boolean;
initialSortBy?: BasicTableSettings['sortBy'];
/**
* keyword to filter by
*/
search?: string;
}
export function NestedDatatable<D extends DefaultType>({
@@ -33,6 +38,7 @@ export function NestedDatatable<D extends DefaultType>({
initialTableState = {},
isLoading,
initialSortBy,
search,
}: Props<D>) {
const tableInstance = useReactTable<D>({
columns,
@@ -45,6 +51,9 @@ export function NestedDatatable<D extends DefaultType>({
enableColumnFilter: false,
enableHiding: false,
},
state: {
globalFilter: search,
},
getRowId,
autoResetExpanded: false,
getCoreRowModel: getCoreRowModel(),
@@ -55,7 +64,7 @@ export function NestedDatatable<D extends DefaultType>({
return (
<NestedTable>
<Table.Container>
<Table.Container noWidget>
<DatatableContent<D>
tableInstance={tableInstance}
isLoading={isLoading}