Merge branch 'Service_Project_Managment' of https://git.marcoaiot.com/admin/marco.pms.web into Service_Project_Managment
This commit is contained in:
commit
4dfc0fa7ca
@ -14,6 +14,7 @@ import SelectMultiple from "../common/SelectMultiple";
|
|||||||
import { projectSchema } from "./ServiceProjectSchema";
|
import { projectSchema } from "./ServiceProjectSchema";
|
||||||
import {
|
import {
|
||||||
useOrganization,
|
useOrganization,
|
||||||
|
useOrganizationModal,
|
||||||
useOrganizationsList,
|
useOrganizationsList,
|
||||||
} from "../../hooks/useOrganization";
|
} from "../../hooks/useOrganization";
|
||||||
import { error } from "pdf-lib";
|
import { error } from "pdf-lib";
|
||||||
@ -106,6 +107,8 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [projectdata]);
|
}, [projectdata]);
|
||||||
|
|
||||||
|
const { onOpen: openOrgModal } = useOrganizationModal();
|
||||||
return (
|
return (
|
||||||
<FormProvider {...methods}>
|
<FormProvider {...methods}>
|
||||||
<form className="px-3 py-2" onSubmit={handleSubmit(onSubmit)}>
|
<form className="px-3 py-2" onSubmit={handleSubmit(onSubmit)}>
|
||||||
@ -141,6 +144,10 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
|
|||||||
</select>
|
</select>
|
||||||
<i
|
<i
|
||||||
className="bx bx-plus-circle bx-xs cursor-pointer text-primary"
|
className="bx bx-plus-circle bx-xs cursor-pointer text-primary"
|
||||||
|
onClick={() => {
|
||||||
|
onClose();
|
||||||
|
openOrgModal({ startStep: 2 }); // Step 4 = ManagOrg
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{errors?.clientId && (
|
{errors?.clientId && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user