Merge branch 'Issues_July_4W' of https://git.marcoaiot.com/admin/marco.pms.web into Issues_July_4W

This commit is contained in:
Kartik Sharma 2025-07-26 12:56:54 +05:30
commit 7e5f5807f6
3 changed files with 0 additions and 13 deletions

View File

@ -226,7 +226,6 @@ const AttendanceLog = ({
[projectId, dateRange, dispatch]
);
// Removed duplicate useEffect, keeping only one
useEffect(() => {
eventBus.on("employee", employeeHandler);
return () => eventBus.off("employee", employeeHandler);

View File

@ -39,7 +39,6 @@ const Regularization = ({ handleRequest, searchQuery }) => {
);
const employeeHandler = useCallback(
const employeeHandler = useCallback(
(msg) => {
if (regularizes.some((item) => item.employeeId == msg.employeeId)) {
@ -55,7 +54,6 @@ const Regularization = ({ handleRequest, searchQuery }) => {
return () => eventBus.off("regularization", handler);
}, [handler]);
useEffect(() => {
useEffect(() => {
eventBus.on("employee", employeeHandler);
return () => eventBus.off("employee", employeeHandler);
@ -182,5 +180,3 @@ const Regularization = ({ handleRequest, searchQuery }) => {
};
export default Regularization;

View File

@ -51,9 +51,6 @@ const AssignTask = ({ assignData, onClose, setAssigned }) => {
// State for search term
const [searchTerm, setSearchTerm] = useState("");
// State for search term
const [searchTerm, setSearchTerm] = useState("");
useEffect(() => {
if (typeof bootstrap !== "undefined") {
if (infoRef.current) {
@ -230,7 +227,6 @@ const AssignTask = ({ assignData, onClose, setAssigned }) => {
onClose();
};
return (
<div className="fs-5 text-dark text-center d-flex align-items-center justify-content-center flex-wrap">
<p className="align-items-center flex-wrap m-0 ">Assign Task</p>
@ -646,15 +642,11 @@ const AssignTask = ({ assignData, onClose, setAssigned }) => {
id="defaultFormControlInput"
aria-describedby="defaultFormControlHelp"
/>
<span style={{ paddingLeft: "6px", whiteSpace: "nowrap" }}>
<u> {
assignData?.workItem?.activityMaster
<span style={{ paddingLeft: "6px", whiteSpace: "nowrap" }}>
<u> {
assignData?.workItem?.activityMaster
?.unitOfMeasurement
}</u>
}</u>
</span>
<div
style={{