From cd23e43a82d8e987642778f4d9843d021f1aa1f9 Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Fri, 18 Jul 2025 11:57:07 +0530 Subject: [PATCH] removed unused code --- src/components/Project/Infrastructure/WorkArea.jsx | 4 ++-- src/components/Project/Infrastructure/WorkItem.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Project/Infrastructure/WorkArea.jsx b/src/components/Project/Infrastructure/WorkArea.jsx index c0d9ec7b..03d491f1 100644 --- a/src/components/Project/Infrastructure/WorkArea.jsx +++ b/src/components/Project/Infrastructure/WorkArea.jsx @@ -22,7 +22,7 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { const [IsExpandedArea, setIsExpandedArea] = useState(false); const dispatch = useDispatch(); const [Project, setProject] = useState(); - const { projectId } = useParams(); + // const { projectId } = useParams(); const ManageInfra = useHasUserPermission(MANAGE_PROJECT_INFRA); const ManageAndAssignTak = useHasUserPermission(ASSIGN_REPORT_TASK); @@ -144,7 +144,7 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { Today's Planned Progress - {(ManageInfra || (!projectId && ManageAndAssignTak)) && ( + {(ManageInfra || ManageAndAssignTak) && ( Actions diff --git a/src/components/Project/Infrastructure/WorkItem.jsx b/src/components/Project/Infrastructure/WorkItem.jsx index 64d68457..241f5e33 100644 --- a/src/components/Project/Infrastructure/WorkItem.jsx +++ b/src/components/Project/Infrastructure/WorkItem.jsx @@ -32,7 +32,7 @@ const WorkItem = ({ forWorkArea, deleteHandleTask, }) => { - // const projectId = useSelector((store)=>store.localVariables.projectId) + const projectId = useSelector((store)=>store.localVariables.projectId) const isTaskPlanning = /^\/activities\/task$/.test(location.pathname); const [itemName, setItemName] = useState("");