UI changes in View popup at attendance logs

This commit is contained in:
Kartik Sharma 2025-10-30 12:16:25 +05:30
parent c7976a5a0a
commit 565ce3f757

View File

@ -123,12 +123,15 @@ const AttendLogs = ({ Id }) => {
}, []);
return (
<div className="table-responsive">
<div className="text-start">
<div className="mb-3">
<h5 className="mb-4">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>
@ -142,9 +145,9 @@ const AttendLogs = ({ Id }) => {
<table className="table table-sm mb-0">
<thead>
<tr>
<th>Activity</th>
<th>Date</th>
<th>Time</th>
<th>Activity</th>
<th>Location</th>
<th>Recored By</th>
<th>Description</th>
@ -156,11 +159,16 @@ const AttendLogs = ({ Id }) => {
.sort((a, b) => b.id - a.id)
.map((log, index) => (
<tr key={index}>
<td>{formatUTCToLocalTime(log.activityTime)}</td>
<td>{convertShortTime(log.activityTime)}</td>
<td>
{whichActivityPerform(log.activity, log.activityTime)}
</td>
<td>
<div className="py-2">
{formatUTCToLocalTime(log.activityTime)}
</div>
</td>
<td>{convertShortTime(log.activityTime)}</td>
<td>
{log?.latitude != 0 ? (
<i
@ -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