Feature/date picker (#238)

- Date range picker for tournaments.

- Resets date when closing picker

- tRPC and Jotai update
This commit is contained in:
Owen Rees
2024-01-16 12:28:08 +01:00
committed by GitHub
parent a3ec663384
commit efa9088336
10 changed files with 1058 additions and 775 deletions
+3
View File
@@ -51,6 +51,7 @@ export type Tournament = {
url: string;
timeControl: TimeControl;
date: string;
isoDate: string;
latLng: LatLngLiteral;
norm: boolean;
pending: boolean;
@@ -78,6 +79,8 @@ export type ResponseMessage = {
message: string;
};
export type DatePickerDirection = "horizontal" | "vertical";
export type ScrollableElement = Window | HTMLElement;
// Prettify takes a type as its argument and returns a new type that has the same properties as the original type,