update api
This commit is contained in:
@ -2,6 +2,6 @@ VITE_APP_NAME=tpay-dashboard-tl
|
|||||||
VITE_APP_VERSION=1=9.1.1
|
VITE_APP_VERSION=1=9.1.1
|
||||||
GENERATE_SOURCEMAP=false
|
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_APP_API_URL=http://127.0.0.1:4003/api
|
||||||
VITE_ENV=development
|
VITE_ENV=development
|
||||||
|
|||||||
@ -49,8 +49,8 @@ const AddDialog = () => {
|
|||||||
if (response?.status) {
|
if (response?.status) {
|
||||||
handleAddDialog(false);
|
handleAddDialog(false);
|
||||||
resetForm();
|
resetForm();
|
||||||
toast.success('Municipio created successfully!');
|
|
||||||
reload();
|
reload();
|
||||||
|
toast.success('Municipio created successfully!');
|
||||||
// const createActivity = {
|
// const createActivity = {
|
||||||
// module: 'Manage Municipio',
|
// module: 'Manage Municipio',
|
||||||
// description: `Create Municipio => ${selectedMunicipios}`,
|
// description: `Create Municipio => ${selectedMunicipios}`,
|
||||||
@ -80,14 +80,15 @@ const AddDialog = () => {
|
|||||||
// created_at: formattedTime
|
// created_at: formattedTime
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// doCreateMunicipio(e);
|
doCreateMunicipio(e);
|
||||||
console.log(parsedUser.email);
|
console.log(parsedUser.email);
|
||||||
console.log(formField);
|
console.log(formField);
|
||||||
setAlert({ show: false, message: '' });
|
setAlert({ show: false, message: '' });
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleReset = () => {
|
const handleReset = () => {
|
||||||
setFormField(initialState);
|
resetForm();
|
||||||
|
setAlert({ show: false, message: '' });
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -96,7 +97,7 @@ const AddDialog = () => {
|
|||||||
if (showAddDialog) {
|
if (showAddDialog) {
|
||||||
setFormField({
|
setFormField({
|
||||||
name: formField.name,
|
name: formField.name,
|
||||||
created_by: parsedUser.email,
|
created_by: parsedUser?.username,
|
||||||
created_at: formattedTime
|
created_at: formattedTime
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user