From 2c0153e0559fb793e415c852e120406f1ef8dcdd Mon Sep 17 00:00:00 2001 From: Joao Correia Date: Sat, 25 Jan 2025 15:10:52 +0000 Subject: [PATCH] Fix animations --- .../ApprovalWorkflows/WorkflowForm.tsx | 14 +++--- .../WorkflowStepComponent.tsx | 2 +- src/pages/approval-workflows/[id].tsx | 6 ++- src/pages/approval-workflows/create.tsx | 43 ++++++++----------- 4 files changed, 29 insertions(+), 36 deletions(-) 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) && ( + + )} + - )} - - - - - + + )}