Compare commits
No commits in common. "28c226904e066c8538bf24cb52190451fafd0162" and "afac84dc9bb011744d7171827521ba30ae3752ff" have entirely different histories.
28c226904e
...
afac84dc9b
@ -44,20 +44,13 @@ const InfraPlanning = () =>
|
|||||||
<div className="col-md-12 col-lg-12 col-xl-12 order-0 mb-4">
|
<div className="col-md-12 col-lg-12 col-xl-12 order-0 mb-4">
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<div className="card-body" style={{ padding: "0.5rem" }}>
|
<div className="card-body" style={{ padding: "0.5rem" }}>
|
||||||
{ManageInfra ? (
|
<div className="align-items-center">
|
||||||
<div className="align-items-center">
|
|
||||||
<div className="row ">
|
<div className="row ">
|
||||||
{isLoading && ( <p>Loading...</p> )}
|
{isLoading && ( <p>Loading...</p> )}
|
||||||
{( !isLoading && projectInfra?.length === 0 ) && ( <p>No Result Found</p> )}
|
{( !isLoading && projectInfra?.length === 0 ) && ( <p>No Result Found</p> )}
|
||||||
{(!isLoading && projectInfra?.length > 0) && (<InfraTable buildings={projectInfra} projectId={selectedProject}/>)}
|
{(!isLoading && projectInfra?.length > 0) && (<InfraTable buildings={projectInfra} projectId={selectedProject}/>)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<div className="text-center">
|
|
||||||
<i className="fa-solid fa-triangle-exclamation fs-5"></i>
|
|
||||||
<p>Access Denied: You don't have permission to perform this action. !</p>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -60,8 +60,7 @@ const EditActivityModal = ({
|
|||||||
const { mutate: UpdateTask, isPending } = useManageTask({
|
const { mutate: UpdateTask, isPending } = useManageTask({
|
||||||
onSuccessCallback: (response) =>
|
onSuccessCallback: (response) =>
|
||||||
{
|
{
|
||||||
showToast( response?.message, "success" )
|
showToast(response?.message,"success")
|
||||||
onClose()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import {useEmployeesByProjectAllocated, useProjects} from "../../hooks/useProjects";
|
import {useEmployeesByProjectAllocated, useProjects} from "../../hooks/useProjects";
|
||||||
import {formatNumber} from "../../utils/dateUtils";
|
|
||||||
|
|
||||||
const ProjectOverview = ({project}) =>{
|
const ProjectOverview = ({project}) =>{
|
||||||
const {projects} = useProjects()
|
const {projects} = useProjects()
|
||||||
@ -16,13 +15,13 @@ const ProjectOverview = ({project}) =>{
|
|||||||
<li className="d-flex align-items-center mb-4">
|
<li className="d-flex align-items-center mb-4">
|
||||||
<i className="bx bx-check"></i>
|
<i className="bx bx-check"></i>
|
||||||
<span className="fw-medium mx-2">Task Planned:</span>{" "}
|
<span className="fw-medium mx-2">Task Planned:</span>{" "}
|
||||||
<span>{formatNumber(project_detail?.plannedWork)
|
<span>{project_detail?.plannedWork
|
||||||
}</span>
|
}</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="d-flex align-items-center mb-4">
|
<li className="d-flex align-items-center mb-4">
|
||||||
<i className="bx bx-star"></i>
|
<i className="bx bx-star"></i>
|
||||||
<span className="fw-medium mx-2">Task Completed:</span>{" "}
|
<span className="fw-medium mx-2">Task Completed:</span>{" "}
|
||||||
<span>{formatNumber(project_detail?.completedWork) }</span>
|
<span>{project_detail?.completedWork }</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="d-flex align-items-center">
|
<li className="d-flex align-items-center">
|
||||||
<i className="bx bx-user"></i>
|
<i className="bx bx-user"></i>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user