From b02c28697d1e1d85e6a42a5d3f48095d5a0ace33 Mon Sep 17 00:00:00 2001 From: burnettk Date: Thu, 1 Jun 2023 10:43:27 -0400 Subject: [PATCH] use icons for running unit tests, w/ lantz --- .../src/components/ProcessModelTestRun.tsx | 39 +++++++------------ .../src/routes/ProcessModelShow.tsx | 25 +++++------- 2 files changed, 22 insertions(+), 42 deletions(-) diff --git a/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx b/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx index 9938431a0..231b86b20 100644 --- a/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx +++ b/spiffworkflow-frontend/src/components/ProcessModelTestRun.tsx @@ -1,4 +1,4 @@ -import { PlayOutline, Checkmark, Close } from '@carbon/icons-react'; +import { Rule, Checkmark, Close } from '@carbon/icons-react'; import { Button, Modal } from '@carbon/react'; import { useState } from 'react'; import { useUriListForPermissions } from '../hooks/UriListForPermissions'; @@ -11,12 +11,12 @@ import { type OwnProps = { processModelFile?: ProcessFile; - buttonType?: string; + titleText: string; }; export default function ProcessModelTestRun({ processModelFile, - buttonType = 'icon', + titleText, }: OwnProps) { const [testCaseResults, setTestCaseResults] = useState(null); @@ -153,29 +153,16 @@ export default function ProcessModelTestRun({ }; const buttonElement = () => { - if (buttonType === 'icon') { - return ( - - ); - } - return null; + return ( +