mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Tournament select field
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user