From 9db3c6fb49a20903b1a837827f938057e17af715 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 26 Sep 2025 11:25:36 +0530 Subject: [PATCH] Add extra spacing in Infra Work details. --- .../Project/Infrastructure/WorkArea.jsx | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/components/Project/Infrastructure/WorkArea.jsx b/src/components/Project/Infrastructure/WorkArea.jsx index c38af26d..f4b868d2 100644 --- a/src/components/Project/Infrastructure/WorkArea.jsx +++ b/src/components/Project/Infrastructure/WorkArea.jsx @@ -14,12 +14,12 @@ import { } from "../../../utils/constants"; import { useParams } from "react-router-dom"; import ProgressBar from "../../common/ProgressBar"; -import {formatNumber} from "../../../utils/dateUtils"; +import { formatNumber } from "../../../utils/dateUtils"; import { useServices } from "../../../hooks/masterHook/useMaster"; const WorkArea = ({ workArea, floor, forBuilding }) => { const selectedProject = useSelectedProject() - const selectedService = useCurrentService() + const selectedService = useCurrentService() const { projects_Details, loading } = useProjectDetails(selectedProject); const [IsExpandedArea, setIsExpandedArea] = useState(false); const dispatch = useDispatch(); @@ -27,7 +27,7 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { const ManageInfra = useHasUserPermission(MANAGE_PROJECT_INFRA); const ManageAndAssignTak = useHasUserPermission(ASSIGN_REPORT_TASK); - const { ProjectTaskList, isLoading } = useProjectTasks(workArea.id,selectedService, IsExpandedArea); + const { ProjectTaskList, isLoading } = useProjectTasks(workArea.id, selectedService, IsExpandedArea); const [workAreaStatus, setWorkAreaStatus] = useState({ completed: 0, @@ -82,9 +82,8 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { aria-controls={`collapse-${workArea.id}`} > { -
- -
+
+ +

@@ -121,12 +120,12 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { className="accordion-collapse collapse" aria-labelledby={`heading-${workArea.id}`} > -
- {isLoading || ProjectTaskList === undefined ? ( +
+ {isLoading || ProjectTaskList === undefined ? (
Loading activities...
- ) : ProjectTaskList?.length === 0 ? ( + ) : ProjectTaskList?.length === 0 ? (
No activities available for this work area.
- ):ProjectTaskList?.length > 0 ? ( + ) : ProjectTaskList?.length > 0 ? ( @@ -152,9 +151,9 @@ const WorkArea = ({ workArea, floor, forBuilding }) => { - {ProjectTaskList.map((workItem,index) => ( + {ProjectTaskList.map((workItem, index) => (