edit event
This commit is contained in:
@@ -75,7 +75,7 @@ const EditEventsPage = () => {
|
|||||||
if (response.status === 200 || response.status === 201) {
|
if (response.status === 200 || response.status === 201) {
|
||||||
console.log("Event updated successfully:", response.data);
|
console.log("Event updated successfully:", response.data);
|
||||||
resetForm(); // Clear form after successful submit
|
resetForm(); // Clear form after successful submit
|
||||||
navigate("/manageEvent");
|
navigate("/events");
|
||||||
} else {
|
} else {
|
||||||
console.error("Error updating event:", response.statusText);
|
console.error("Error updating event:", response.statusText);
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@ const EditEventsPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DefaultLayout>
|
<div className="w-full h-full">
|
||||||
<section className="w-8/12 mx-auto">
|
<section className="w-8/12 mx-auto">
|
||||||
<Button
|
<Button
|
||||||
variant="light"
|
variant="light"
|
||||||
@@ -178,7 +178,7 @@ const EditEventsPage = () => {
|
|||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
</section>
|
</section>
|
||||||
</DefaultLayout>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user