diff --git a/src/frontend/src/components/Dashboard/TaskLogs/TaskLogsTable.tsx b/src/frontend/src/components/Dashboard/TaskLogs/TaskLogsTable.tsx new file mode 100644 index 00000000..eaac4eab --- /dev/null +++ b/src/frontend/src/components/Dashboard/TaskLogs/TaskLogsTable.tsx @@ -0,0 +1,58 @@ +import { format } from 'date-fns'; +import { useNavigate } from 'react-router-dom'; + +interface ITaskLogsTableProps { + data: any[]; +} + +const TaskLogsTable = ({ data: taskList }: ITaskLogsTableProps) => { + const navigate = useNavigate(); + return ( +
+ ID + | ++ Total task area + | ++ Est.flight time + | ++ Created Date + | ++ Status + | ++ |
{task.task_id} | +{task.task_area} | +- | +{format(new Date(task.created_at), 'yyyy-MM-dd')} | +{task.state} | +
+ navigate(`/tasks/${task.task_id}`)}
+ >
+ zoom_in
+
+ |
+