diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/.server/api/schema.d.ts | 2 | ||||
| -rw-r--r-- | frontend/app/.server/auth.ts | 4 | ||||
| -rw-r--r-- | frontend/app/routes/dashboard.tsx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 815731e..5219ac8 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -74,7 +74,7 @@ export interface components { /** @example john */ username: string; /** @example John Doe */ - display_username: string; + display_name: string; /** @example /images/john.jpg */ icon_path?: string | null; /** @example false */ diff --git a/frontend/app/.server/auth.ts b/frontend/app/.server/auth.ts index 9696e90..a3496af 100644 --- a/frontend/app/.server/auth.ts +++ b/frontend/app/.server/auth.ts @@ -35,7 +35,7 @@ type JwtPayload = components["schemas"]["JwtPayload"]; export type User = { userId: number; username: string; - displayUsername: string; + displayName: string; iconPath: string | null; isAdmin: boolean; }; @@ -126,7 +126,7 @@ export async function isAuthenticated( return { userId: payload.user_id, username: payload.username, - displayUsername: payload.display_username, + displayName: payload.display_name, iconPath: payload.icon_path ?? null, isAdmin: payload.is_admin, }; diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index 7fda6d7..907a031 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -21,15 +21,15 @@ export default function Dashboard() { <h2 className="text-2xl font-semibold mb-2">User</h2> <div className="mb-6"> <ul className="list-disc list-inside"> - <li>Name: {user.displayUsername}</li> + <li>Name: {user.displayName}</li> </ul> </div> <h2 className="text-2xl font-semibold mb-2">Team</h2> <div className="mb-6"> <ul className="list-disc list-inside"> - <li>Name: {user.displayUsername}</li> + <li>Name: {user.displayName}</li> <li> - Members: {user.displayUsername} ({user.username}) + Members: {user.displayName} ({user.username}) </li> </ul> </div> |
