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="card">
|
||||
<div className="card-body" style={{ padding: "0.5rem" }}>
|
||||
{ManageInfra ? (
|
||||
<div className="align-items-center">
|
||||
<div className="align-items-center">
|
||||
<div className="row ">
|
||||
{isLoading && ( <p>Loading...</p> )}
|
||||
{( !isLoading && projectInfra?.length === 0 ) && ( <p>No Result Found</p> )}
|
||||
{(!isLoading && projectInfra?.length > 0) && (<InfraTable buildings={projectInfra} projectId={selectedProject}/>)}
|
||||
</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>
|
||||
|
||||
@ -60,8 +60,7 @@ const EditActivityModal = ({
|
||||
const { mutate: UpdateTask, isPending } = useManageTask({
|
||||
onSuccessCallback: (response) =>
|
||||
{
|
||||
showToast( response?.message, "success" )
|
||||
onClose()
|
||||
showToast(response?.message,"success")
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import React from "react";
|
||||
import {useEmployeesByProjectAllocated, useProjects} from "../../hooks/useProjects";
|
||||
import {formatNumber} from "../../utils/dateUtils";
|
||||
|
||||
const ProjectOverview = ({project}) =>{
|
||||
const {projects} = useProjects()
|
||||
@ -16,13 +15,13 @@ const ProjectOverview = ({project}) =>{
|
||||
<li className="d-flex align-items-center mb-4">
|
||||
<i className="bx bx-check"></i>
|
||||
<span className="fw-medium mx-2">Task Planned:</span>{" "}
|
||||
<span>{formatNumber(project_detail?.plannedWork)
|
||||
<span>{project_detail?.plannedWork
|
||||
}</span>
|
||||
</li>
|
||||
<li className="d-flex align-items-center mb-4">
|
||||
<i className="bx bx-star"></i>
|
||||
<span className="fw-medium mx-2">Task Completed:</span>{" "}
|
||||
<span>{formatNumber(project_detail?.completedWork) }</span>
|
||||
<span>{project_detail?.completedWork }</span>
|
||||
</li>
|
||||
<li className="d-flex align-items-center">
|
||||
<i className="bx bx-user"></i>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user