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>
|
||||
</span>
|
||||
</div>
|
||||
<div className="d-block">
|
||||
<h6 className="mb-0 d-block">
|
||||
{project.projectShortName}
|
||||
</h6>
|
||||
<small className="text-muted">
|
||||
{project.projectName}
|
||||
</small>
|
||||
<div>
|
||||
<h6 className="mb-0">{project.projectShortName}</h6>
|
||||
<small className="text-muted">{project.projectName}</small>
|
||||
<div className="label-secondary">
|
||||
Assigned:{" "}
|
||||
{project.assignedDate ? (
|
||||
new Date(
|
||||
project.assignedDate
|
||||
).toLocaleDateString()
|
||||
new Date(project.assignedDate).toLocaleDateString()
|
||||
) : (
|
||||
<em>NA</em>
|
||||
)}
|
||||
@ -66,27 +60,11 @@ const EmpDashboard = ({ profile }) => {
|
||||
</div>
|
||||
|
||||
{/* Dates */}
|
||||
<div className="mt-2 d-flex flex-column flex-sm-row gap-3">
|
||||
{project.removedDate && (
|
||||
<div className="mt-2 d-flex flex-column flex-sm-row justify-content-between">
|
||||
<div className="label-secondary">
|
||||
Unassigned:{" "}
|
||||
{project.removedDate ? (
|
||||
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>
|
||||
)}
|
||||
{new Date(project.removedDate).toLocaleDateString()}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@ -94,6 +72,7 @@ const EmpDashboard = ({ profile }) => {
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user