add date picker

This commit is contained in:
2025-12-10 15:36:47 +01:00
parent 17ab80cac9
commit 1ec15179b7
4 changed files with 106 additions and 16 deletions
+12 -12
View File
@@ -60,23 +60,23 @@ export const zoneSchema = z
path: ["features"],
});
// export const fetchClubPlayersSchema = z.array(
// z.object({
// nrFFE: z.string(),
// name: z.string(),
// elo: z.string(),
// elo_rapid: z.string(),
// elo_blitz: z.string(),
// category: z.string(),
// club: z.string(),
// }),
// );
export const fetchClubPlayersSchema = z.object({
clubId: z.string(),
});
const matchPlayerSchema = z.object({
name: z.string(),
elo: z.string(),
nrFFE: z.string(),
});
export const matchSchema = z.object({
competition: z.string(),
date: z.string(),
ronde: z.number(),
lieu: z.string(),
team1: z.string(),
team2: z.string(),
team1_players: z.array(matchPlayerSchema),
team2_players: z.array(matchPlayerSchema),
});