feat: add 'Utilisateurs' link to Header component and implement user statistics retrieval in auth service

This commit is contained in:
Julien Froidefond
2025-11-28 10:55:49 +01:00
parent ff7c846ed1
commit 941151553f
3 changed files with 296 additions and 0 deletions

View File

@@ -155,6 +155,13 @@ export function Header() {
>
👤 Mon Profil
</Link>
<Link
href="/users"
onClick={() => setMenuOpen(false)}
className="block w-full px-4 py-2 text-left text-sm text-foreground hover:bg-card-hover"
>
👥 Utilisateurs
</Link>
<button
onClick={() => signOut({ callbackUrl: '/' })}
className="w-full px-4 py-2 text-left text-sm text-destructive hover:bg-card-hover"