notifications

This commit is contained in:
alma 2025-05-04 11:51:41 +02:00
parent 38b0f162f8
commit fabf267cc1
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ type PageProps = {
};
export default async function SectionPage({ params }: PageProps) {
const sectionSlug = String(params?.section || '');
const sectionSlug = String(await params?.section || '');
const iframeUrl = menuItems[sectionSlug as keyof typeof menuItems];

View File

@ -13,6 +13,8 @@ export const NotificationBadge = memo(function NotificationBadge({ className }:
const { notificationCount } = useNotifications();
const hasUnread = notificationCount.unread > 0;
console.log('[NOTIFICATION_BADGE] Current notification count:', notificationCount);
return (
<div className={`relative ${className || ''}`}>
<Link