feat: add profile link to header and implement user profile update functionality with email and password management

This commit is contained in:
Julien Froidefond
2025-11-27 13:37:18 +01:00
parent 10ff15392f
commit 873b3dd9f3
7 changed files with 417 additions and 0 deletions

View File

@@ -75,6 +75,13 @@ export function Header() {
{session.user.email}
</p>
</div>
<Link
href="/profile"
onClick={() => setMenuOpen(false)}
className="block w-full px-4 py-2 text-left text-sm text-foreground hover:bg-card-hover"
>
👤 Mon Profil
</Link>
<button
onClick={() => signOut({ callbackUrl: '/' })}
className="w-full px-4 py-2 text-left text-sm text-destructive hover:bg-card-hover"