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 = ( const links = (
<> <>
<InternalLink route="dashboard" style={{ fontSize: rem(16) }}> {auth.isAuthenticated && (
Dashboard <InternalLink route="dashboard" style={{ fontSize: rem(16) }}>
</InternalLink> Dashboard
</InternalLink>
)}
<ExternalLinkUnstyled <ExternalLinkUnstyled
href={PROJECT_REPO_GITHUB_URL} href={PROJECT_REPO_GITHUB_URL}
style={{ fontSize: rem(16) }} style={{ fontSize: rem(16) }}