Tournament select field

This commit is contained in:
Timothy Armes
2023-10-16 18:07:38 +02:00
committed by Owen Rees
parent a0f9d4dd4e
commit db369a3979
15 changed files with 518 additions and 88 deletions
+8
View File
@@ -5,6 +5,7 @@ export type Status = "scheduled" | "ongoing" | "finished";
export type TournamentData = {
_id: ObjectId;
tournament_id: string;
town: string;
department: string;
country: string;
@@ -38,6 +39,7 @@ export enum TimeControl {
export type Tournament = {
id: string;
ffeId: string;
groupId: string;
town: string;
department: string;
@@ -51,6 +53,12 @@ export type Tournament = {
status: Status;
};
export const tcMap: Record<TournamentData["time_control"], TimeControl> = {
"Cadence Lente": TimeControl.Classic,
Rapide: TimeControl.Rapid,
Blitz: TimeControl.Blitz,
};
export type Club = {
id: string;
name: string;