From d56809b1413e0c9630a48a551f637f226df26316 Mon Sep 17 00:00:00 2001 From: danfunk Date: Tue, 4 Jul 2023 10:22:14 -0400 Subject: [PATCH] Lint fixing --- .../src/components/ProcessInstanceListTable.tsx | 15 ++++++++++++--- .../src/components/ReactDiagramEditor.tsx | 8 +++++--- .../src/routes/ProcessInstanceShow.tsx | 10 +++++++--- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index a4bc5ab9..b072d567 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -23,7 +23,6 @@ import { TableRow, TimePicker, Tag, - Stack, Modal, ComboBox, TextInput, @@ -1785,7 +1784,12 @@ export default function ProcessInstanceListTable({ {processInstanceReportSaveTag()} {tableTitleLine()} - + - + {resultsTable} diff --git a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx index 1b5b1774..264bb1dc 100644 --- a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx +++ b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx @@ -92,6 +92,8 @@ type OwnProps = { activeUserElement?: React.ReactElement; }; +const FitViewport = 'fit-viewport'; + // https://codesandbox.io/s/quizzical-lake-szfyo?file=/src/App.js was a handy reference export default function ReactDiagramEditor({ processModelId, @@ -428,11 +430,11 @@ export default function ReactDiagramEditor({ // a Modeler and not an Editor which is what it will be when we are // actively editing a decision table if ((modeler as any).constructor.name === 'Modeler') { - canvas.zoom('fit-viewport'); + canvas.zoom(FitViewport); } if ((modeler as any).constructor.name === 'Viewer') { - canvas.zoom('fit-viewport'); + canvas.zoom(FitViewport); } // highlighting a field @@ -495,7 +497,7 @@ export default function ReactDiagramEditor({ ref.element.set(ref.property, elem); }); diagramModelerToUse.importDefinitions(result.rootElement); - diagramModelerToUse.get('canvas').zoom('fit-viewport'); + diagramModelerToUse.get('canvas').zoom(FitViewport); }); } else { diagramModelerToUse.importXML(diagramXMLToDisplay); diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx index d57f80d5..c6dfc0a0 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -314,7 +314,9 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { const lastUpdatedTimeTag = (
{lastUpdatedTimeLabel}:
-
{convertSecondsToFormattedDateTime(lastUpdatedTime || 0) || 'N/A'}
+
+ {convertSecondsToFormattedDateTime(lastUpdatedTime || 0) || 'N/A'} +
); @@ -373,8 +375,10 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { {lastUpdatedTimeTag}
Revision:
-
{processInstance.bpmn_version_control_identifier} ( - {processInstance.bpmn_version_control_type})
+
+ {processInstance.bpmn_version_control_identifier} ( + {processInstance.bpmn_version_control_type}) +