fix: show dashboard link for authenticated users only

This commit is contained in:
Sonny
2025-08-21 02:54:35 +02:00
parent 7672a719ea
commit 8537eeb375

View File

@@ -42,9 +42,11 @@ export function FloatingNavbar({ width }: FloatingNavbarProps) {
const links = (
<>
<InternalLink route="dashboard" style={{ fontSize: rem(16) }}>
Dashboard
</InternalLink>
{auth.isAuthenticated && (
<InternalLink route="dashboard" style={{ fontSize: rem(16) }}>
Dashboard
</InternalLink>
)}
<ExternalLinkUnstyled
href={PROJECT_REPO_GITHUB_URL}
style={{ fontSize: rem(16) }}