refactor: reorganize imports and improve error handling across components

This commit is contained in:
Wikid82
2025-11-20 22:21:32 -05:00
parent 9f62a4a2df
commit 62904858b2
23 changed files with 271 additions and 169 deletions
@@ -43,6 +43,7 @@ const NotificationCenter: React.FC = () => {
<button
onClick={() => setIsOpen(!isOpen)}
className="relative p-2 text-gray-400 hover:text-white focus:outline-none"
aria-label="Notifications"
>
<Bell className="w-6 h-6" />
{unreadCount > 0 && (
@@ -55,6 +56,7 @@ const NotificationCenter: React.FC = () => {
{isOpen && (
<>
<div
data-testid="notification-backdrop"
className="fixed inset-0 z-10"
onClick={() => setIsOpen(false)}
></div>