From 5484f6d5d422fd9335ef140952c41050902305b5 Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 25 Nov 2022 02:53:20 -0500 Subject: [PATCH] do not mislead user about being able to edit and clean up time in words --- .../src/components/TableCellWithTimeAgoInWords.tsx | 8 ++++---- .../src/components/TasksForMyOpenProcesses.tsx | 2 +- .../src/components/TasksWaitingForMe.tsx | 2 +- .../src/components/TasksWaitingForMyGroups.tsx | 2 +- spiffworkflow-frontend/src/helpers/timeago.js | 10 +++++++--- .../src/routes/ProcessModelShow.tsx | 13 ++++++++++--- 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/spiffworkflow-frontend/src/components/TableCellWithTimeAgoInWords.tsx b/spiffworkflow-frontend/src/components/TableCellWithTimeAgoInWords.tsx index 754c37fb..9952c056 100644 --- a/spiffworkflow-frontend/src/components/TableCellWithTimeAgoInWords.tsx +++ b/spiffworkflow-frontend/src/components/TableCellWithTimeAgoInWords.tsx @@ -3,15 +3,15 @@ import { TimeAgo } from '../helpers/timeago'; import { convertSecondsToFormattedDateTime } from '../helpers'; type OwnProps = { - time_in_seconds: number; + timeInSeconds: number; }; export default function TableCellWithTimeAgoInWords({ - time_in_seconds, + timeInSeconds, }: OwnProps) { return ( - - {time_in_seconds ? TimeAgo.inWords(time_in_seconds) : '-'} + + {timeInSeconds ? TimeAgo.inWords(timeInSeconds) : '-'} ); } diff --git a/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx b/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx index 05121c86..6e6e84d5 100644 --- a/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx +++ b/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx @@ -75,7 +75,7 @@ export default function MyOpenProcesses() { ) || '-'}