Merge branch 'feature/notification_actions' into 'develop'

add notification to datatable

See merge request witel3/loan-facilities-expert!31
This commit is contained in:
yasaman aliakbari
2023-07-16 12:13:22 +00:00

View File

@@ -49,8 +49,9 @@ const useDataTable = () => {
.post(`${url}/${rowID}`, values, {
headers: { authorization: `Bearer ${token}` },
})
.then(() => {
.then((response) => {
setReloadDataTable(true);
Notifications(directionApp, response, t);
})
.catch((error) => {
Notifications(directionApp, error.response, t);
@@ -63,8 +64,9 @@ const useDataTable = () => {
.post(`${url}/${rowID}`, values, {
headers: { authorization: `Bearer ${token}` },
})
.then(() => {
.then((response) => {
setReloadDataTable(true);
Notifications(directionApp, response, t);
})
.catch((error) => {
console.log(error);