diff --git a/public/assets/css/default.css b/public/assets/css/default.css
index ddd2cfcc..936c150b 100644
--- a/public/assets/css/default.css
+++ b/public/assets/css/default.css
@@ -171,3 +171,7 @@
inset-block-start: 1.5rem;
inset-inline-end: 1.5rem;
}
+
+.text-darkgreen {
+ color: #16a085;
+}
diff --git a/src/components/Project/Infrastructure/Floor.jsx b/src/components/Project/Infrastructure/Floor.jsx
index 264ee88d..f59fece2 100644
--- a/src/components/Project/Infrastructure/Floor.jsx
+++ b/src/components/Project/Infrastructure/Floor.jsx
@@ -20,8 +20,12 @@ const Floor = ({ floor, workAreas, forBuilding }) => {
{" "}
- Floor: {" "}
- {floor.floorName}
+
+ Floor:
+ {" "}
+
+ {floor.floorName}
+
diff --git a/src/components/Project/Infrastructure/WorkArea.jsx b/src/components/Project/Infrastructure/WorkArea.jsx
index e937ed0e..c2231fd4 100644
--- a/src/components/Project/Infrastructure/WorkArea.jsx
+++ b/src/components/Project/Infrastructure/WorkArea.jsx
@@ -1,22 +1,21 @@
-import React, { useEffect,useState } from "react";
+import React, { useEffect, useState } from "react";
import WorkItem from "./WorkItem";
-import {useProjectDetails} from "../../../hooks/useProjects";
-import {getCachedData} from "../../../slices/apiDataManager";
+import { useProjectDetails } from "../../../hooks/useProjects";
+import { getCachedData } from "../../../slices/apiDataManager";
-const WorkArea = ( {workArea, floor, forBuilding} ) =>{
- const [workItems,setWorkItems] =useState([])
+const WorkArea = ({ workArea, floor, forBuilding }) => {
+ const [workItems, setWorkItems] = useState([]);
- useEffect( () =>
- {
- const project = getCachedData( "projectInfo" )
+ useEffect(() => {
+ const project = getCachedData("projectInfo");
if (!project || !forBuilding?.id || !floor?.id || !workArea?.id) return;
- const building = project.buildings?.find((b) => b.id === forBuilding.id);
- const floors = building?.floors?.find((f) => f.id === floor.id);
- const workAreas = floor?.workAreas?.find((wa) => wa.id === workArea.id);
+ const building = project.buildings?.find((b) => b.id === forBuilding.id);
+ const floors = building?.floors?.find((f) => f.id === floor.id);
+ const workAreas = floor?.workAreas?.find((wa) => wa.id === workArea.id);
- setWorkItems(workAreas?.workItems || []);
- }, [ workArea ,floor,floor] );
+ setWorkItems(workAreas?.workItems || []);
+ }, [workArea, floor, floor]);
return (
@@ -27,12 +26,20 @@ const WorkArea = ( {workArea, floor, forBuilding} ) =>{
{" "}
- Floor: {" "}
- {floor.floorName}
+
+ Floor:
+ {" "}
+
+ {floor.floorName}
+
- Work Area: {" "}
- {workArea.areaName}
+
+ Work Area:
+ {" "}
+
+ {workArea.areaName}
+
@@ -40,7 +47,7 @@ const WorkArea = ( {workArea, floor, forBuilding} ) =>{
- {(workItems && workItems.length > 0) && (
+ {workItems && workItems.length > 0 && (
@@ -88,7 +95,7 @@ const WorkArea = ( {workArea, floor, forBuilding} ) =>{
)}
- {!workItems && No item }
+ {!workItems && No item }
);
};
|