mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 17:16:26 +00:00
Extracted NotificationCenterUtils
This commit is contained in:
parent
d292676b73
commit
3e31f98d0f
1 changed files with 11 additions and 0 deletions
11
frontend/src/utils/components/NotificationCenterUtils.js
Normal file
11
frontend/src/utils/components/NotificationCenterUtils.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import API from '../../api.js';
|
||||
|
||||
export const getNotifications = (showDismissed) => {
|
||||
return API.getNotifications(showDismissed);
|
||||
};
|
||||
export const dismissNotification = (notificationId, actionTaken) => {
|
||||
return API.dismissNotification(notificationId, actionTaken);
|
||||
};
|
||||
export const dismissAllNotifications = () => {
|
||||
return API.dismissAllNotifications();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue