mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
fix: show dashboard link for authenticated users only
This commit is contained in:
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user