mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Add Tournament form
This commit is contained in:
@@ -20,6 +20,7 @@ export interface TournamentData {
|
||||
norm_tournament: boolean;
|
||||
date: string;
|
||||
coordinates: [number, number];
|
||||
pending: boolean;
|
||||
}
|
||||
|
||||
const tcMap: Record<TournamentData["time_control"], TimeControl> = {
|
||||
@@ -110,6 +111,7 @@ const getTournaments = async () => {
|
||||
timeControl,
|
||||
latLng: { lat: t.coordinates[0], lng: t.coordinates[1] },
|
||||
norm: t.norm_tournament,
|
||||
pending: t.pending,
|
||||
};
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -120,6 +122,5 @@ const getTournaments = async () => {
|
||||
|
||||
export default async function Tournaments() {
|
||||
const tournaments = await getTournaments();
|
||||
|
||||
return <TournamentsDisplay tournaments={tournaments} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user