mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2025-02-07 22:33:37 +01:00
NotificationUtils: Add tag to notifications.
This commit is contained in:
parent
e2ca107e01
commit
98819ae32c
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ export const unseenNotificationsFromStore = store =>
|
||||||
filter(filteredNotificationsFromStore(store), ({ seen }) => !seen)
|
filter(filteredNotificationsFromStore(store), ({ seen }) => !seen)
|
||||||
|
|
||||||
export const prepareNotificationObject = (notification, i18n) => {
|
export const prepareNotificationObject = (notification, i18n) => {
|
||||||
const notifObj = {}
|
const notifObj = {
|
||||||
|
tag: notification.id
|
||||||
|
}
|
||||||
const status = notification.status
|
const status = notification.status
|
||||||
const title = notification.from_profile.name
|
const title = notification.from_profile.name
|
||||||
notifObj.title = title
|
notifObj.title = title
|
||||||
|
|
Loading…
Reference in a new issue