diff --git a/src/components/ApprovalWorkflows/WorkflowStep.tsx b/src/components/ApprovalWorkflows/WorkflowStep.tsx index e451744d..f17a8574 100644 --- a/src/components/ApprovalWorkflows/WorkflowStep.tsx +++ b/src/components/ApprovalWorkflows/WorkflowStep.tsx @@ -2,6 +2,8 @@ import Option from "@/interfaces/option"; import clsx from "clsx"; import { useState } from "react"; import { BsTrash } from "react-icons/bs"; +import { FaWpforms } from "react-icons/fa6"; +import { LuGripHorizontal } from "react-icons/lu"; import WorkflowStepNumber from "./WorkflowStepNumber"; import WorkflowStepSelects from "./WorkflowStepSelects"; @@ -57,13 +59,16 @@ export default function WorkflowStep({ return (
-
+
+ {stepNumber !== 1 && !finalStep && + + }
{/* Only show selects if editView === true and stepType === 'approval-by' */} @@ -83,6 +88,20 @@ export default function WorkflowStep({
)} + {stepNumber === 1 && ( +
+
+
+ + Form Intake +
+
+ Prof. X +
+
+
+ )} + {editView && stepNumber !== 1 && !finalStep && ( - - {steps.map((step, index) => ( - - handleDelete(index)} // Pass index for deletion - /> - - ))} - - + + + {steps.map((step, index) => ( + + handleDelete(step.key)} + /> + {step.finalStep && + + } + + ))} + + + + +