mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-05-04 13:22:58 +02:00
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:
parent
5a048aefd6
commit
2ecb02677e
3 changed files with 5 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ import { authApi } from '../api/client';
|
|||
interface User {
|
||||
id: number;
|
||||
email: string;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
interface AuthContextType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue