mirror of https://github.com/portainer/portainer
20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
import { Task } from '@/react/nomad/types';
|
|
|
|
import { NestedDatatable } from '@@/datatables/NestedDatatable';
|
|
|
|
import { columns } from './columns';
|
|
|
|
export interface Props {
|
|
data: Task[];
|
|
}
|
|
|
|
export function TasksDatatable({ data }: Props) {
|
|
return (
|
|
<NestedDatatable
|
|
columns={columns}
|
|
dataset={data}
|
|
initialSortBy={{ id: 'taskName', desc: false }}
|
|
/>
|
|
);
|
|
}
|