update api
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user