Update May 24 by Elvis

This commit is contained in:
belviskhoremk
2026-05-24 18:50:28 +00:00
parent 342ba2c867
commit 209ac114b0
7 changed files with 94 additions and 36 deletions

View File

@@ -64,15 +64,15 @@ export default function Header() {
{user ? (
<div className="flex items-center gap-2">
<Link
href="/mon-compte"
href={user.role === "admin" ? "/admin" : "/mon-compte"}
className="hidden lg:flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors"
title={t("nav.account")}
>
<User className="h-4 w-4" />
{user.full_name ?? user.email}
{user.full_name || user.email}
</Link>
<Link
href="/mon-compte"
href={user.role === "admin" ? "/admin" : "/mon-compte"}
className="lg:hidden p-2 text-muted-foreground hover:text-foreground transition-colors"
title={t("nav.account")}
>