(ui): Convert all tasks tables to use TasksTable component

This commit is contained in:
Ken Hibino
2022-04-03 06:50:01 -07:00
parent 726d58fcda
commit c22c0206d7
8 changed files with 171 additions and 1480 deletions

View File

@@ -74,17 +74,6 @@ const columns: TableColumn[] = [
{ key: "actions", label: "Actions", align: "center" },
];
function ScheduledTasksTable(props: Props & ReduxProps) {
return (
<TasksTable
taskState="scheduled"
columns={columns}
renderRow={(rowProps: RowProps) => <Row {...rowProps} />}
{...props}
/>
);
}
function Row(props: RowProps) {
const { task } = props;
const classes = useRowStyles();
@@ -187,4 +176,15 @@ function Row(props: RowProps) {
);
}
function ScheduledTasksTable(props: Props & ReduxProps) {
return (
<TasksTable
taskState="scheduled"
columns={columns}
renderRow={(rowProps: RowProps) => <Row {...rowProps} />}
{...props}
/>
);
}
export default connector(ScheduledTasksTable);