optimized EmpDashBoard , EmployeeNav and EmployeeProfile
This commit is contained in:
parent
8e12528e3a
commit
f387a56d7b
@ -39,19 +39,13 @@ const EmpDashboard = ({ profile }) => {
|
|||||||
<i className="icon-base bx bx-buildings icon-lg"></i>
|
<i className="icon-base bx bx-buildings icon-lg"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-block">
|
<div>
|
||||||
<h6 className="mb-0 d-block">
|
<h6 className="mb-0">{project.projectShortName}</h6>
|
||||||
{project.projectShortName}
|
<small className="text-muted">{project.projectName}</small>
|
||||||
</h6>
|
|
||||||
<small className="text-muted">
|
|
||||||
{project.projectName}
|
|
||||||
</small>
|
|
||||||
<div className="label-secondary">
|
<div className="label-secondary">
|
||||||
Assigned:{" "}
|
Assigned:{" "}
|
||||||
{project.assignedDate ? (
|
{project.assignedDate ? (
|
||||||
new Date(
|
new Date(project.assignedDate).toLocaleDateString()
|
||||||
project.assignedDate
|
|
||||||
).toLocaleDateString()
|
|
||||||
) : (
|
) : (
|
||||||
<em>NA</em>
|
<em>NA</em>
|
||||||
)}
|
)}
|
||||||
@ -66,34 +60,19 @@ const EmpDashboard = ({ profile }) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Dates */}
|
{/* Dates */}
|
||||||
<div className="mt-2 d-flex flex-column flex-sm-row gap-3">
|
|
||||||
{project.removedDate && (
|
{project.removedDate && (
|
||||||
|
<div className="mt-2 d-flex flex-column flex-sm-row justify-content-between">
|
||||||
<div className="label-secondary">
|
<div className="label-secondary">
|
||||||
Unassigned:{" "}
|
Unassigned:{" "}
|
||||||
{project.removedDate ? (
|
{new Date(project.removedDate).toLocaleDateString()}
|
||||||
new Date(project.removedDate).toLocaleDateString()
|
|
||||||
) : (
|
|
||||||
<em>NA</em>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
{project.removedDate && (
|
|
||||||
<div className="col-sm-4 col-lg-12 col-xxl-4 d-flex justify-content-xxl-end mt-1">
|
|
||||||
<div className="label-secondary">
|
|
||||||
Unassigned:{" "}
|
|
||||||
{project.removedDate ? (
|
|
||||||
new Date(project.removedDate).toLocaleDateString()
|
|
||||||
) : (
|
|
||||||
<em>NA</em>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user