diff --git a/src/components/ApprovalWorkflows/WorkflowForm.tsx b/src/components/ApprovalWorkflows/WorkflowForm.tsx index eb393d4d..d730b16a 100644 --- a/src/components/ApprovalWorkflows/WorkflowForm.tsx +++ b/src/components/ApprovalWorkflows/WorkflowForm.tsx @@ -95,12 +95,8 @@ export default function WorkflowForm({ workflow, onWorkflowChange, entityTeacher <> {workflow.entityId && workflow.name &&
- - +
diff --git a/src/components/ApprovalWorkflows/WorkflowStepComponent.tsx b/src/components/ApprovalWorkflows/WorkflowStepComponent.tsx index a3387201..a6741148 100644 --- a/src/components/ApprovalWorkflows/WorkflowStepComponent.tsx +++ b/src/components/ApprovalWorkflows/WorkflowStepComponent.tsx @@ -29,7 +29,7 @@ export default function WorkflowStepComponent({ return (
diff --git a/src/pages/approval-workflows/[id].tsx b/src/pages/approval-workflows/[id].tsx index 38f18439..5ecd6ca2 100644 --- a/src/pages/approval-workflows/[id].tsx +++ b/src/pages/approval-workflows/[id].tsx @@ -22,6 +22,7 @@ import { RiThumbUpLine } from "react-icons/ri"; import { ToastContainer } from "react-toastify"; import approvalWorkflowsData from '../../demo/approval_workflows.json'; // to test locally +import Tip from "@/components/ApprovalWorkflows/Tip"; export const getServerSideProps = withIronSessionSsr(async ({ req, res, params }) => { const user = await requestUser(req, res); @@ -125,6 +126,9 @@ export default function Home({ user, workflow, workflowAssignees, workflowReques status={workflow.status} />
+ {steps.find((step) => !step.completed) === undefined && + + }
@@ -235,7 +239,7 @@ export default function Home({ user, workflow, workflowAssignees, workflowReques value={comments} onChange={(e) => setComments(e.target.value)} placeholder="Input comments here" - className="w-full h-80 p-2 border-2 rounded-xl focus:border-mti-purple focus:outline-none mt-4" + className="w-full h-80 p-2 border-2 rounded-xl shadow-lg focus:border-mti-purple focus:outline-none mt-4" /> - - {(!currentWorkflow.name || !currentWorkflow.entityId) && ( + + - + {(!currentWorkflow.name || !currentWorkflow.entityId) && ( + + )} + - )} - - - - - + + )}