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]
|
||||
|
||||
const getAuthCookieName = (kind: TokenKind) => {
|
||||
const suffix = `${PROJECT_ID}_${kind}`.toUpperCase().replaceAll('-', '_')
|
||||
const suffix = `${PROJECT_ID}_${kind}`.toUpperCase()
|
||||
return `FIREBASE_TOKEN_${suffix}`
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ export default function Notifications(props: { user: User }) {
|
|||
cachedNotifications={localNotifications}
|
||||
/>
|
||||
) : localNotifications && localNotifications.length > 0 ? (
|
||||
<div>
|
||||
<div className={'min-h-[100vh]'}>
|
||||
<RenderNotificationGroups
|
||||
notificationGroups={localNotificationGroups}
|
||||
/>
|
||||
|
@ -182,7 +182,7 @@ function NotificationsList(props: {
|
|||
const local = safeLocalStorage()
|
||||
local?.setItem(
|
||||
'notification-groups',
|
||||
JSON.stringify(maxNotificationsToShow)
|
||||
JSON.stringify(allGroupedNotifications)
|
||||
)
|
||||
}, [allGroupedNotifications, page])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user