update title

This commit is contained in:
Wikzyy
2025-04-09 14:28:02 +07:00
parent 01a77f0067
commit c52db0a6e5
21 changed files with 120 additions and 142 deletions

View File

@ -68,18 +68,18 @@ const EditDialog = () => {
if (response?.status) {
resetForm();
handleEditDialog(false, null);
toast.success('Success Update Aldeias');
toast.success('Success Update Aldeia');
reload();
const createActivity = {
module: 'Manage Aldeias',
module: 'Manage Aldeia',
description: `Edit Aldeia => ${selectedAldeias}`,
action: 'U'
};
doSaveLogActivity(createActivity);
} else {
toast.error('Error Update Aldeias');
setAlert({ show: true, message: 'Error Update Aldeias' });
toast.error('Error Update Aldeia');
setAlert({ show: true, message: 'Error Update Aldeia' });
}
},
[selectedAldeias, formField]
@ -99,7 +99,8 @@ const EditDialog = () => {
// console.log('SUCOS', response?.data);
setSucos(response?.data.list);
} catch (error) {
console.error('Error fetching municipios', error);
console.error('Error fetching Sucos', error);
setAlert({ show: true, message: 'Failed to get Sucos. Please try again.' });
}
};
@ -164,7 +165,7 @@ const EditDialog = () => {
<Dialog open={showEditDialog} onOpenChange={(open) => handleEditDialog(open, null)}>
<DialogContent className="container-fixed max-w-[768px] flex flex-col p-5 overflow-hidden">
<DialogHeader>
<DialogTitle>Aldeias - Update</DialogTitle>
<DialogTitle>Aldeia - Update</DialogTitle>
<DialogDescription></DialogDescription>
</DialogHeader>
<DialogBody>
@ -180,7 +181,7 @@ const EditDialog = () => {
<div className="w-full">
<div className="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
<label className="form-label flex items-center gap-1 max-w-56">
Name<span className="text-red-500">*</span>
Aldeia Name<span className="text-red-500">*</span>
</label>
<Input
className="input"