mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Delete & View Notification Providers
This commit is contained in:
@@ -31,8 +31,8 @@ const useNotifications = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const deleteNotification = (notificationId: number) => {
|
||||
axios.delete('/api/notifications/delete', { params: { notificationId } })
|
||||
const deleteNotification = (notificationId: number): Promise<string> | string => {
|
||||
return axios.delete('/api/notifications/delete', { params: { notificationId } })
|
||||
.then(() => {
|
||||
return "Notification deleted successfully";
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user