1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

notifications: added boris notifications

This commit is contained in:
Fedor Katurov 2023-03-18 16:09:53 +06:00
parent d56bfe968d
commit 2ecda12513
13 changed files with 61 additions and 22 deletions

View file

@ -8,6 +8,7 @@ export const notificationSettingsFromRequest = (
): NotificationSettings => ({
enabled: req.enabled,
flow: req.flow,
boris: req.boris,
comments: req.comments,
sendTelegram: req.send_telegram,
showIndicator: req.show_indicator,
@ -20,6 +21,7 @@ export const notificationSettingsToRequest = (
): ApiUpdateNotificationSettingsRequest => ({
enabled: req.enabled,
flow: req.flow,
boris: req.boris,
comments: req.comments,
send_telegram: req.sendTelegram,
show_indicator: req.showIndicator,

View file

@ -14,6 +14,7 @@ const defaultValue = {
toggleEnabled: () => {},
markAsRead: () => {},
refresh: () => Promise.resolve() as Promise<unknown>,
lastSeen: null as Date | null | undefined,
};
const NotificationContext = createContext(defaultValue);