From 311c2afb98a9f1531015b1404ef2f92adeb40ea0 Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Sun, 4 May 2025 23:05:46 +0530 Subject: [PATCH 1/2] handle infra icon issue --- src/components/Project/AssignRole.jsx | 1 - .../Project/Infrastructure/WorkItem.jsx | 41 +------------------ 2 files changed, 2 insertions(+), 40 deletions(-) diff --git a/src/components/Project/AssignRole.jsx b/src/components/Project/AssignRole.jsx index efaad453..dcee6784 100644 --- a/src/components/Project/AssignRole.jsx +++ b/src/components/Project/AssignRole.jsx @@ -37,7 +37,6 @@ const AssignRoleModel = ({ assignData, onClose }) => { ), }); const [plannedTask, setPlannedTask] = useState(); - const { openModal, closeModal } = useModal(); const selectedProject = useSelector( (store) => store.localVariables.projectId ); diff --git a/src/components/Project/Infrastructure/WorkItem.jsx b/src/components/Project/Infrastructure/WorkItem.jsx index 8acf85f0..129c65c0 100644 --- a/src/components/Project/Infrastructure/WorkItem.jsx +++ b/src/components/Project/Infrastructure/WorkItem.jsx @@ -47,7 +47,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => { const closeModal1 = () => setShowModal(false); return ( <> - {showModal && ( + {isModalOpen && (
{ >
- +
{!projectId && ManageTasks && (
- -
- {ManageInfra && ( - <> - - - - -
- {" "} - - {" "} - Edit - - - {" "} - Delete - - {!projectId && ( - - {" "} - Assign - - )} -
- - )} -
- ); From d06cfd97a7f49be22bb0290c1ed549d9de03c33c Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Sun, 4 May 2025 23:12:40 +0530 Subject: [PATCH 2/2] icon issue --- src/components/Project/Infrastructure/WorkItem.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Project/Infrastructure/WorkItem.jsx b/src/components/Project/Infrastructure/WorkItem.jsx index 129c65c0..ca70001c 100644 --- a/src/components/Project/Infrastructure/WorkItem.jsx +++ b/src/components/Project/Infrastructure/WorkItem.jsx @@ -140,7 +140,7 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => { )} - {!projectId && ManageInfra && ( + {projectId && ManageInfra && ( <>