mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +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 = (
|
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) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user