Compare commits
No commits in common. "a68bd7dc384ddddc70f509bd8e2011da5021663d" and "b198e7142a2aa876bc24928450d80d2c2ae92358" have entirely different histories.
a68bd7dc38
...
b198e7142a
@ -102,21 +102,13 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => {
|
||||
const onSubmitForm = (updatedProject) => {
|
||||
setLoading(true);
|
||||
handleSubmitForm( updatedProject, setLoading,reset );
|
||||
};
|
||||
|
||||
|
||||
|
||||
const handleCancel = () => {
|
||||
reset({
|
||||
id: project?.id || "",
|
||||
name: project?.name || "",
|
||||
contactPerson: project?.contactPerson || "",
|
||||
projectAddress: project?.projectAddress || "",
|
||||
startDate: formatDate(project?.startDate) || currentDate,
|
||||
endDate: formatDate(project?.endDate) || currentDate,
|
||||
projectStatusId: String(project?.projectStatusId || "00000000-0000-0000-0000-000000000000"),
|
||||
});
|
||||
onClose();
|
||||
};
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div
|
||||
className="modal-dialog modal-lg modal-simple mx-sm-auto mx-1 edit-project-modal"
|
||||
@ -127,7 +119,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => {
|
||||
<button
|
||||
type="button"
|
||||
className="btn-close"
|
||||
onClick={handleCancel}
|
||||
onClick={onClose}
|
||||
aria-label="Close"
|
||||
></button>
|
||||
<div className="text-center mb-2">
|
||||
@ -288,7 +280,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => {
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-sm btn-label-secondary"
|
||||
onClick={handleCancel}
|
||||
onClick={onClose}
|
||||
aria-label="Close"
|
||||
>
|
||||
Cancel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user