From 5f370a9724ff72bed454357b45ec6d1094aaa2f6 Mon Sep 17 00:00:00 2001 From: burnettk Date: Tue, 11 Feb 2025 15:10:13 -0500 Subject: [PATCH] fix table --- .../a-spiffui-v3/components/TaskListTable.tsx | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/spiffworkflow-frontend/src/a-spiffui-v3/components/TaskListTable.tsx b/spiffworkflow-frontend/src/a-spiffui-v3/components/TaskListTable.tsx index e0ea6a004..66a6f17e8 100644 --- a/spiffworkflow-frontend/src/a-spiffui-v3/components/TaskListTable.tsx +++ b/spiffworkflow-frontend/src/a-spiffui-v3/components/TaskListTable.tsx @@ -1,5 +1,5 @@ import { ReactElement, useEffect, useState } from 'react'; -import { Button, Table, Modal, Stack } from '@mui/material'; +import { Button, Table, TableHead, TableBody, TableRow, TableCell, Modal, Stack } from '@mui/material'; import { Link, useSearchParams } from 'react-router-dom'; import { TimeAgo } from '../helpers/timeago'; import UserService from '../services/UserService'; @@ -218,7 +218,7 @@ export default function TaskListTable({ processInstanceTask.process_model_identifier, ); return ( - + {processInstanceTask.process_instance_id} - + ); }; @@ -243,7 +243,7 @@ export default function TaskListTable({ processInstanceTask.process_model_identifier, ); rowElements.push( - + {processInstanceTask.process_model_display_name} - , + , ); } }; @@ -305,34 +305,34 @@ export default function TaskListTable({ dealWithProcessCells(rowElements, processInstanceTask); rowElements.push( - {processInstanceTask.task_title ? processInstanceTask.task_title : processInstanceTask.task_name} - , + , ); if (showStartedBy) { rowElements.push( - {processInstanceTask.process_initiator_username}, + {processInstanceTask.process_initiator_username}, ); } if (showWaitingOn) { rowElements.push( - {getWaitingForTableCellComponent(processInstanceTask)}, + {getWaitingForTableCellComponent(processInstanceTask)}, ); } if (showCompletedBy) { - rowElements.push({processInstanceTask.completed_by_username}); + rowElements.push({processInstanceTask.completed_by_username}); } if (showDateStarted) { rowElements.push( - + {DateAndTimeService.convertSecondsToFormattedDateTime( processInstanceTask.created_at_in_seconds, ) || '-'} - , + , ); } if (showLastUpdated) { @@ -343,9 +343,9 @@ export default function TaskListTable({ ); } if (showActionsColumn) { - rowElements.push({getActionButtons(processInstanceTask)}); + rowElements.push({getActionButtons(processInstanceTask)}); } - return {rowElements}; + return {rowElements}; }; const getTableHeaders = () => { @@ -388,14 +388,14 @@ export default function TaskListTable({ }); return ( - - + + {tableHeaders.map((tableHeader: string) => { - return ; + return {tableHeader}; })} - - - {rows} + + + {rows}
{tableHeader}
); };