Display user's name instead of email in profile button

- Add name field to auth login/register responses
- Update User interface in AuthContext to include name
- Show name (or email as fallback) in navbar dropdown

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-21 22:17:36 -05:00
parent 5a048aefd6
commit 2ecb02677e
3 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import { authApi } from '../api/client';
interface User {
id: number;
email: string;
name: string | null;
}
interface AuthContextType {