This commit is contained in:
Amaël Kesteman
2026-01-08 12:04:17 +01:00
6 changed files with 27 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
export type Groupe = "Entrainement" | "Competition" | "Loisir"| "";
export type Role = "Admin" | "Athlete" | "Coach";
export type Role = "admin" | "athlete" | "coach";
export class User{
id!: number;
@@ -98,7 +98,7 @@ export function getUserTest():User{
user.id = 0;
user.nom = "Emilien-Yee NootNoot";
user.role = "Coach"
user.role = "coach"
s1.creneau = new Date();
s1.id = 1;
s1.name = "Entrainement Frisbee"
@@ -185,9 +185,9 @@ export function getUserTest():User{
user.sessions.push(s2);
user.sessions.push(s3);
athlete1.role = "Athlete";
athlete2.role = "Athlete";
athlete3.role = "Athlete";
athlete1.role = "athlete";
athlete2.role = "athlete";
athlete3.role = "athlete";
return user;
}

View File

@@ -51,7 +51,7 @@ export const Login =() =>{
email: tokenParsed?.email,
nom: tokenParsed?.family_name,
prenom: tokenParsed?.given_name,
role: "Athlete",
role: "athlete",
sessions: []
});
}