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