{/* LOGO */}
@@ -124,26 +150,7 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
{/* NAVIGATION LINKS */}
-
-
-
+ {navLinks}
@@ -180,22 +187,20 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
Notificações
- {notifications.length === 0 ? (
+ {notifications.filter(n => !n.read).length === 0 ? (
Nenhuma notificação no momento.
) : (
- notifications.map(n => (
+ notifications.filter(n => !n.read).map(n => (
{n.message}
{new Date(n.createdAt).toLocaleDateString('pt-BR')}
- {!n.read && (
-
- )}
+
))
@@ -214,9 +219,13 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
{showProfileMenu && (
@@ -255,6 +264,11 @@ export default function Navbar({ user, activeView, setView, onLogout, settings }
+
+ {/* MOBILE NAVIGATION LINKS */}
+