Correction in EmpReporting Manger.
This commit is contained in:
parent
559d6cdaac
commit
cd467efcb3
@ -3,7 +3,7 @@ import { useOrganizationHierarchy } from "../../hooks/useEmployees";
|
|||||||
import GlobalModel from "../common/GlobalModel";
|
import GlobalModel from "../common/GlobalModel";
|
||||||
import ManageReporting from "./ManageReporting";
|
import ManageReporting from "./ManageReporting";
|
||||||
|
|
||||||
const EmpReportingManager = ({ employeeId }) => {
|
const EmpReportingManager = ({ employeeId, employee }) => {
|
||||||
const { data, isLoading } = useOrganizationHierarchy(employeeId);
|
const { data, isLoading } = useOrganizationHierarchy(employeeId);
|
||||||
const [showManageReportingModal, setShowManageReportingModal] = useState(false);
|
const [showManageReportingModal, setShowManageReportingModal] = useState(false);
|
||||||
|
|
||||||
@ -22,9 +22,11 @@ const EmpReportingManager = ({ employeeId }) => {
|
|||||||
<div className="col-12 mb-4">
|
<div className="col-12 mb-4">
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<small className="card-text text-uppercase text-body-secondary small d-block text-start mb-3">
|
<h5 className="m-0 py-1 mb-3">
|
||||||
Reporting Manager
|
Update Reporting Manager
|
||||||
</small>
|
|
||||||
|
</h5>
|
||||||
|
|
||||||
|
|
||||||
{/* Primary Reporting Manager */}
|
{/* Primary Reporting Manager */}
|
||||||
<div className="d-flex align-items-start mb-3">
|
<div className="d-flex align-items-start mb-3">
|
||||||
@ -32,7 +34,7 @@ const EmpReportingManager = ({ employeeId }) => {
|
|||||||
<i className="bx bx-user bx-xs me-2 mt-1"></i>
|
<i className="bx bx-user bx-xs me-2 mt-1"></i>
|
||||||
<span>Primary Reporting Manager</span>
|
<span>Primary Reporting Manager</span>
|
||||||
</span>
|
</span>
|
||||||
<span style={{ marginLeft: "10px" }}>:</span>
|
<span style={{ marginLeft: "75px" }}>:</span>
|
||||||
<span className="ms-5">
|
<span className="ms-5">
|
||||||
{primary?.reportTo?.firstName || <em>NA</em>}{" "}
|
{primary?.reportTo?.firstName || <em>NA</em>}{" "}
|
||||||
{primary?.reportTo?.lastName || ""}
|
{primary?.reportTo?.lastName || ""}
|
||||||
@ -74,8 +76,10 @@ const EmpReportingManager = ({ employeeId }) => {
|
|||||||
>
|
>
|
||||||
<ManageReporting
|
<ManageReporting
|
||||||
employeeId={employeeId}
|
employeeId={employeeId}
|
||||||
|
employee={primary?.employee || {}}
|
||||||
onClosed={() => setShowManageReportingModal(false)}
|
onClosed={() => setShowManageReportingModal(false)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</GlobalModel>
|
</GlobalModel>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user