remove minor error while code review
This commit is contained in:
parent
978c7b8e4b
commit
130fffcc16
@ -84,7 +84,7 @@ const AttendLogs = ({ Id }) => {
|
|||||||
document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||||||
);
|
);
|
||||||
tooltipTriggerList.forEach((el) => new bootstrap.Tooltip(el));
|
tooltipTriggerList.forEach((el) => new bootstrap.Tooltip(el));
|
||||||
}, [] );
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className="table-responsive">
|
<div className="table-responsive">
|
||||||
<div className="text-start">
|
<div className="text-start">
|
||||||
@ -106,13 +106,12 @@ const AttendLogs = ({ Id }) => {
|
|||||||
<table className="table table-sm mb-0">
|
<table className="table table-sm mb-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th >Date</th>
|
<th>Date</th>
|
||||||
<th >Time</th>
|
<th>Time</th>
|
||||||
<th >Activity</th>
|
<th>Activity</th>
|
||||||
<th >Location</th>
|
<th>Location</th>
|
||||||
<th >Recored By</th>
|
<th>Recored By</th>
|
||||||
<th >Description</th>
|
<th>Description</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -127,7 +126,7 @@ const AttendLogs = ({ Id }) => {
|
|||||||
<td>
|
<td>
|
||||||
{log?.latitude != 0 ? (
|
{log?.latitude != 0 ? (
|
||||||
<i
|
<i
|
||||||
class="bx bx-location-plus text-danger cursor-pointer"
|
className="bx bx-location-plus text-danger cursor-pointer"
|
||||||
data-bs-toggle="tooltip"
|
data-bs-toggle="tooltip"
|
||||||
data-bs-offset="0,8"
|
data-bs-offset="0,8"
|
||||||
data-bs-placement="top"
|
data-bs-placement="top"
|
||||||
@ -141,13 +140,14 @@ const AttendLogs = ({ Id }) => {
|
|||||||
"--"
|
"--"
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td className="text-wrap" >
|
<td className="text-wrap">
|
||||||
{`${logs[0]?.updatedByEmployee?.firstName ?? ''} ${logs[0]?.updatedByEmployee?.lastName ?? ''}`}
|
{`${logs[0]?.updatedByEmployee?.firstName ?? ""} ${
|
||||||
|
logs[0]?.updatedByEmployee?.lastName ?? ""
|
||||||
|
}`}
|
||||||
</td>
|
</td>
|
||||||
<td className="text-wrap" colSpan={3} >
|
<td className="text-wrap" colSpan={3}>
|
||||||
{log?.comment || "--"}
|
{log?.comment || "--"}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -62,7 +62,7 @@ const AttendancePage = () => {
|
|||||||
modalElement.classList.remove("show");
|
modalElement.classList.remove("show");
|
||||||
modalElement.style.display = "none";
|
modalElement.style.display = "none";
|
||||||
document.body.classList.remove("modal-open");
|
document.body.classList.remove("modal-open");
|
||||||
document.querySelector(".modal-backdrop").remove();
|
document.querySelector(".modal-backdrop")?.remove();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -93,11 +93,10 @@ const AttendancePage = () => {
|
|||||||
}, [modelConfig, isCreateModalOpen]);
|
}, [modelConfig, isCreateModalOpen]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setAttendances(attendance);
|
setAttendances(attendance);
|
||||||
}, [ attendance ] );
|
}, [attendance]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (selectedProject === 1 || selectedProject === undefined ) {
|
if (selectedProject === 1 || selectedProject === undefined) {
|
||||||
dispatch(setProjectId(loginUser?.projects[0]));
|
dispatch(setProjectId(loginUser?.projects[0]));
|
||||||
}
|
}
|
||||||
}, [selectedProject, loginUser?.projects]);
|
}, [selectedProject, loginUser?.projects]);
|
||||||
@ -108,7 +107,7 @@ const AttendancePage = () => {
|
|||||||
className="modal fade show"
|
className="modal fade show"
|
||||||
style={{ display: "block" }}
|
style={{ display: "block" }}
|
||||||
id="check-Out-modal"
|
id="check-Out-modal"
|
||||||
tabindex="-1"
|
tabIndex="-1"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
<AttendanceModel
|
<AttendanceModel
|
||||||
|
@ -200,7 +200,6 @@ const DailyTask = () => {
|
|||||||
task.assignmentDate.includes(date)
|
task.assignmentDate.includes(date)
|
||||||
).map((task, index) => {
|
).map((task, index) => {
|
||||||
const refIndex = index * 10 + i;
|
const refIndex = index * 10 + i;
|
||||||
console.log(refIndex);
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user