update add dialog municipios

This commit is contained in:
Wikzyy
2025-03-06 11:20:16 +07:00
parent c87f50dfb4
commit 3d38100983

View File

@ -52,13 +52,8 @@ const AddDialog = () => {
if (response?.status) {
handleAddDialog(false);
resetForm();
<<<<<<< HEAD
toast.success('Municipio created successfully!');
reload();
=======
reload();
toast.success('Municipio created successfully!');
>>>>>>> alwi
// const createActivity = {
// module: 'Manage Municipio',
// description: `Create Municipio => ${selectedMunicipios}`,
@ -100,18 +95,6 @@ const AddDialog = () => {
};
useEffect(() => {
<<<<<<< HEAD
const created_time = new Date();
const formattedTime = created_time.toISOString().slice(0, 19).replace('T', ' ');
if (showAddDialog) {
setFormField({
name: formField.name,
created_by: parsedUser.email,
created_at: formattedTime
});
}
}, [showAddDialog]);
=======
if (showAddDialog) {
setFormField({
name: formField.name,
@ -120,7 +103,6 @@ const AddDialog = () => {
});
}
}, [formattedTime]);
>>>>>>> alwi
return (
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>