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

This commit is contained in:
pramod.mahajan 2025-11-18 11:08:44 +05:30
commit 4dfc0fa7ca

View File

@ -14,6 +14,7 @@ import SelectMultiple from "../common/SelectMultiple";
import { projectSchema } from "./ServiceProjectSchema";
import {
useOrganization,
useOrganizationModal,
useOrganizationsList,
} from "../../hooks/useOrganization";
import { error } from "pdf-lib";
@ -106,6 +107,8 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
});
}
}, [projectdata]);
const { onOpen: openOrgModal } = useOrganizationModal();
return (
<FormProvider {...methods}>
<form className="px-3 py-2" onSubmit={handleSubmit(onSubmit)}>
@ -141,6 +144,10 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
</select>
<i
className="bx bx-plus-circle bx-xs cursor-pointer text-primary"
onClick={() => {
onClose();
openOrgModal({ startStep: 2 }); // Step 4 = ManagOrg
}}
/>
</div>
{errors?.clientId && (