Missing title in View popup
This commit is contained in:
parent
2e5951d9d1
commit
af3bf11beb
@ -123,15 +123,19 @@ const AttendLogs = ({ Id }) => {
|
|||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className="table-responsive">
|
<div className="table-responsive">
|
||||||
<div className="text-start">
|
<div className="mb-3">
|
||||||
|
<h5 className="fw-bold mb-2">Attendance Logs</h5>
|
||||||
{logs && !loading && (
|
{logs && !loading && (
|
||||||
<p>
|
<p className="mb-0 text-start">
|
||||||
Attendance logs for{" "}
|
Showing logs for{" "}
|
||||||
{logs[0]?.employee?.firstName + " " + logs[0]?.employee?.lastName}{" "}
|
<strong>
|
||||||
on {formatUTCToLocalTime(logs[0]?.activityTime)}
|
{logs[0]?.employee?.firstName + " " + logs[0]?.employee?.lastName}
|
||||||
|
</strong>{" "}
|
||||||
|
on <strong>{formatUTCToLocalTime(logs[0]?.activityTime)}</strong>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{loading && <p>Loading..</p>}
|
{loading && <p>Loading..</p>}
|
||||||
{logs && logs.length > 0 && (
|
{logs && logs.length > 0 && (
|
||||||
<>
|
<>
|
||||||
@ -156,7 +160,11 @@ const AttendLogs = ({ Id }) => {
|
|||||||
.sort((a, b) => b.id - a.id)
|
.sort((a, b) => b.id - a.id)
|
||||||
.map((log, index) => (
|
.map((log, index) => (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
<td>{formatUTCToLocalTime(log.activityTime)}</td>
|
<td>
|
||||||
|
<div className="py-2">
|
||||||
|
{formatUTCToLocalTime(log.activityTime)}
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td>{convertShortTime(log.activityTime)}</td>
|
<td>{convertShortTime(log.activityTime)}</td>
|
||||||
<td>
|
<td>
|
||||||
{whichActivityPerform(log.activity, log.activityTime)}
|
{whichActivityPerform(log.activity, log.activityTime)}
|
||||||
@ -179,9 +187,8 @@ const AttendLogs = ({ Id }) => {
|
|||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td className="text-wrap">
|
<td className="text-wrap">
|
||||||
{`${log?.updatedByEmployee?.firstName ?? ""} ${
|
{`${log?.updatedByEmployee?.firstName ?? ""} ${log?.updatedByEmployee?.lastName ?? ""
|
||||||
log?.updatedByEmployee?.lastName ?? ""
|
}`}
|
||||||
}`}
|
|
||||||
</td>
|
</td>
|
||||||
<td className="text-wrap" colSpan={3}>
|
<td className="text-wrap" colSpan={3}>
|
||||||
{log?.comment?.length > 50
|
{log?.comment?.length > 50
|
||||||
|
Loading…
x
Reference in New Issue
Block a user