update add dialog municipios
This commit is contained in:
@ -52,13 +52,8 @@ const AddDialog = () => {
|
|||||||
if (response?.status) {
|
if (response?.status) {
|
||||||
handleAddDialog(false);
|
handleAddDialog(false);
|
||||||
resetForm();
|
resetForm();
|
||||||
<<<<<<< HEAD
|
|
||||||
toast.success('Municipio created successfully!');
|
|
||||||
reload();
|
|
||||||
=======
|
|
||||||
reload();
|
reload();
|
||||||
toast.success('Municipio created successfully!');
|
toast.success('Municipio created successfully!');
|
||||||
>>>>>>> alwi
|
|
||||||
// const createActivity = {
|
// const createActivity = {
|
||||||
// module: 'Manage Municipio',
|
// module: 'Manage Municipio',
|
||||||
// description: `Create Municipio => ${selectedMunicipios}`,
|
// description: `Create Municipio => ${selectedMunicipios}`,
|
||||||
@ -100,18 +95,6 @@ const AddDialog = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
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) {
|
if (showAddDialog) {
|
||||||
setFormField({
|
setFormField({
|
||||||
name: formField.name,
|
name: formField.name,
|
||||||
@ -120,7 +103,6 @@ const AddDialog = () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [formattedTime]);
|
}, [formattedTime]);
|
||||||
>>>>>>> alwi
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>
|
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user