From 1d68702d35ce50429c16010d951a1da5c0dd689d 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 754c37fb5..9952c0561 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 05121c861..6e6e84d55 100644 --- a/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx +++ b/spiffworkflow-frontend/src/components/TasksForMyOpenProcesses.tsx @@ -75,7 +75,7 @@ export default function MyOpenProcesses() { ) || '-'}