update api

This commit is contained in:
Wikzyy
2025-03-03 16:42:36 +07:00
parent 9fa379e7df
commit 7a67f04f19
2 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,6 @@ VITE_APP_NAME=tpay-dashboard-tl
VITE_APP_VERSION=1=9.1.1
GENERATE_SOURCEMAP=false
VITE_APP_API_URL=https://tpay.shiblysolution.id/api/d
VITE_APP_API_URL=https://tpay.shiblysolution.id/api
# VITE_APP_API_URL=http://127.0.0.1:4003/api
VITE_ENV=development

View File

@ -49,8 +49,8 @@ const AddDialog = () => {
if (response?.status) {
handleAddDialog(false);
resetForm();
toast.success('Municipio created successfully!');
reload();
toast.success('Municipio created successfully!');
// const createActivity = {
// module: 'Manage Municipio',
// description: `Create Municipio => ${selectedMunicipios}`,
@ -80,14 +80,15 @@ const AddDialog = () => {
// created_at: formattedTime
// });
// doCreateMunicipio(e);
doCreateMunicipio(e);
console.log(parsedUser.email);
console.log(formField);
setAlert({ show: false, message: '' });
};
const handleReset = () => {
setFormField(initialState);
resetForm();
setAlert({ show: false, message: '' });
};
useEffect(() => {
@ -96,7 +97,7 @@ const AddDialog = () => {
if (showAddDialog) {
setFormField({
name: formField.name,
created_by: parsedUser.email,
created_by: parsedUser?.username,
created_at: formattedTime
});
}