added completedWork , plannedWork for progrss line with formatnumber util
This commit is contained in:
parent
485c7f2347
commit
b5b1f9d31f
@ -14,6 +14,7 @@ import {
|
||||
} from "../../../utils/constants";
|
||||
import { useParams } from "react-router-dom";
|
||||
import ProgressBar from "../../common/ProgressBar";
|
||||
import {formatNumber} from "../../../utils/dateUtils";
|
||||
|
||||
const WorkArea = ({ workArea, floor, forBuilding }) => {
|
||||
const selectedProject = useSelector((store) => store.localVariables.projectId);
|
||||
@ -103,15 +104,14 @@ const WorkArea = ({ workArea, floor, forBuilding }) => {
|
||||
{workArea.areaName}
|
||||
</span>
|
||||
</div>
|
||||
{ProjectTaskList?.length > 0 && (
|
||||
|
||||
<div className="col-2">
|
||||
<ProgressBar
|
||||
completedWork={workAreaStatus.completed}
|
||||
plannedWork={workAreaStatus.planned}
|
||||
completedWork={formatNumber(workArea?.completedWork)}
|
||||
plannedWork={formatNumber(workArea?.plannedWork)}
|
||||
className="m-0 text-info"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</button>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user