From 8537eeb37591181d26632bf680c1c9b1a03ab4b7 Mon Sep 17 00:00:00 2001 From: Sonny Date: Thu, 21 Aug 2025 02:54:35 +0200 Subject: [PATCH] fix: show dashboard link for authenticated users only --- .../components/common/floating_navbar/floating_navbar.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inertia/components/common/floating_navbar/floating_navbar.tsx b/inertia/components/common/floating_navbar/floating_navbar.tsx index 6eaa525..08a14f3 100644 --- a/inertia/components/common/floating_navbar/floating_navbar.tsx +++ b/inertia/components/common/floating_navbar/floating_navbar.tsx @@ -42,9 +42,11 @@ export function FloatingNavbar({ width }: FloatingNavbarProps) { const links = ( <> - - Dashboard - + {auth.isAuthenticated && ( + + Dashboard + + )}