markers only show for scheduled games

This commit is contained in:
Owen Rees
2023-09-25 20:58:09 +02:00
parent 57eab6986d
commit 14084aa671
4 changed files with 180 additions and 182 deletions
+4 -2
View File
@@ -1,8 +1,8 @@
import { Dispatch, MutableRefObject, SetStateAction } from "react";
import { LatLngLiteral } from "leaflet";
import { ObjectId } from "mongodb";
type Status = "scheduled" | "ongoing" | "finished";
export type TournamentData = {
_id: ObjectId;
town: string;
@@ -16,6 +16,7 @@ export type TournamentData = {
coordinates: [number, number];
entry_method: "manual" | "auto";
pending: boolean;
status: Status
};
export enum TimeControl {
@@ -37,6 +38,7 @@ export type Tournament = {
latLng: LatLngLiteral;
norm: boolean;
pending: boolean;
status: Status;
};
export type ResponseMessage = {