Save all notifs
This commit is contained in:
parent
bb71e27637
commit
ef4fa841f3
|
@ -6,7 +6,7 @@ const TOKEN_KINDS = ['refresh', 'id'] as const
|
||||||
type TokenKind = typeof TOKEN_KINDS[number]
|
type TokenKind = typeof TOKEN_KINDS[number]
|
||||||
|
|
||||||
const getAuthCookieName = (kind: TokenKind) => {
|
const getAuthCookieName = (kind: TokenKind) => {
|
||||||
const suffix = `${PROJECT_ID}_${kind}`.toUpperCase().replaceAll('-', '_')
|
const suffix = `${PROJECT_ID}_${kind}`.toUpperCase()
|
||||||
return `FIREBASE_TOKEN_${suffix}`
|
return `FIREBASE_TOKEN_${suffix}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ export default function Notifications(props: { user: User }) {
|
||||||
cachedNotifications={localNotifications}
|
cachedNotifications={localNotifications}
|
||||||
/>
|
/>
|
||||||
) : localNotifications && localNotifications.length > 0 ? (
|
) : localNotifications && localNotifications.length > 0 ? (
|
||||||
<div>
|
<div className={'min-h-[100vh]'}>
|
||||||
<RenderNotificationGroups
|
<RenderNotificationGroups
|
||||||
notificationGroups={localNotificationGroups}
|
notificationGroups={localNotificationGroups}
|
||||||
/>
|
/>
|
||||||
|
@ -182,7 +182,7 @@ function NotificationsList(props: {
|
||||||
const local = safeLocalStorage()
|
const local = safeLocalStorage()
|
||||||
local?.setItem(
|
local?.setItem(
|
||||||
'notification-groups',
|
'notification-groups',
|
||||||
JSON.stringify(maxNotificationsToShow)
|
JSON.stringify(allGroupedNotifications)
|
||||||
)
|
)
|
||||||
}, [allGroupedNotifications, page])
|
}, [allGroupedNotifications, page])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user