From cd85dcf83c57e1e75bd52f09a79e325e95415813 Mon Sep 17 00:00:00 2001 From: mroxso <24775431+mroxso@users.noreply.github.com> Date: Sun, 6 Sep 2026 22:24:22 +0200 Subject: [PATCH] Fix notification bell triggers --- src/components/nostr/NotificationsCenter.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/nostr/NotificationsCenter.tsx b/src/components/nostr/NotificationsCenter.tsx index 772a8cb..71bfc29 100644 --- a/src/components/nostr/NotificationsCenter.tsx +++ b/src/components/nostr/NotificationsCenter.tsx @@ -1,5 +1,5 @@ import { Bell, BellRing, Heart, MessageCircle, Repeat2, UserPlus, Zap } from 'lucide-react'; -import { useState } from 'react'; +import { useState, type ComponentProps } from 'react'; import { Button } from '@/components/ui/button'; import { Popover, @@ -98,16 +98,24 @@ function useNotificationState() { : null; } -function NotificationButton({ unreadCount }: { unreadCount: number }) { +function NotificationButton({ + unreadCount, + className, + ...props +}: { unreadCount: number } & ComponentProps<'button'>) { const label = unreadCount > 0 ? `Notifications, ${unreadCount > 99 ? '99 or more' : unreadCount} unread` : 'Notifications, no unread notifications'; return (