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:
@@ -1,4 +1,5 @@
|
||||
import { LatLngLiteral } from "leaflet";
|
||||
import { Dispatch, MutableRefObject, SetStateAction } from "react";
|
||||
|
||||
export enum TimeControl {
|
||||
Classic = "Classic",
|
||||
@@ -18,6 +19,35 @@ export interface Tournament {
|
||||
date: string;
|
||||
latLng: LatLngLiteral;
|
||||
norm: boolean;
|
||||
pending: boolean;
|
||||
}
|
||||
|
||||
export interface MapProps {
|
||||
position: LatLngLiteral;
|
||||
setPosition: Dispatch<SetStateAction<LatLngLiteral>>;
|
||||
center: LatLngLiteral;
|
||||
}
|
||||
|
||||
export interface TournamentFormProps {
|
||||
addressRef: MutableRefObject<HTMLInputElement | null>;
|
||||
townRef: MutableRefObject<HTMLInputElement | null>;
|
||||
departmentRef: MutableRefObject<HTMLInputElement | null>;
|
||||
tournamentNameRef: MutableRefObject<HTMLInputElement | null>;
|
||||
urlRef: MutableRefObject<HTMLInputElement | null>;
|
||||
timeControlRef: MutableRefObject<HTMLSelectElement | null>;
|
||||
dateRef: MutableRefObject<HTMLInputElement | null>;
|
||||
countryRef: MutableRefObject<HTMLInputElement | null>;
|
||||
normRef: MutableRefObject<HTMLSelectElement | null>;
|
||||
yourNameRef: MutableRefObject<HTMLInputElement | null>;
|
||||
yourEmailRef: MutableRefObject<HTMLInputElement | null>;
|
||||
messageRef: MutableRefObject<HTMLTextAreaElement | null>;
|
||||
position: LatLngLiteral;
|
||||
setPosition: Dispatch<SetStateAction<LatLngLiteral>>;
|
||||
}
|
||||
|
||||
export interface ResponseMessage {
|
||||
isSuccessful: boolean;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export type ScrollableElement = Window | HTMLElement;
|
||||
|
||||
Reference in New Issue
Block a user