fix: navbar dashboard link

This commit is contained in:
Sonny
2025-08-06 22:52:38 +02:00
parent 309cf2c9d2
commit a5ddc9eb55
3 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ export function FloatingNavbar({ width }: FloatingNavbarProps) {
const links = (
<>
<InternalLink href="/dashboard" style={{ fontSize: rem(16) }}>
<InternalLink route="dashboard" style={{ fontSize: rem(16) }}>
Dashboard
</InternalLink>
<ExternalLinkUnstyled

View File

@@ -3,7 +3,7 @@ import { Avatar, Group, Menu, Text, UnstyledButton } from '@mantine/core';
import { forwardRef } from 'react';
import { useTranslation } from 'react-i18next';
import { TbChevronRight } from 'react-icons/tb';
import useUser from '~/hooks/use_auth';
import { useAuth } from '~/hooks/use_auth';
interface UserButtonProps extends React.ComponentPropsWithoutRef<'button'> {
image: string;
@@ -45,9 +45,9 @@ const UserButton = forwardRef<HTMLButtonElement, UserButtonProps>(
)
);
export function MantineUserCard() {
export function UserCard() {
const { t } = useTranslation('common');
const { user, isAuthenticated } = useUser();
const { user, isAuthenticated } = useAuth();
return (
isAuthenticated && (
<Menu withArrow>