upgrade: 1st pass upgrade to Next.js v16

This commit is contained in:
2026-09-28 20:59:11 +02:00
parent abb766c2ae
commit d57fa83aca
26 changed files with 1101 additions and 2313 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import { Field, GenericFieldProps } from "./Field";
export type BaseOption<T = string, D = unknown> = {
value: T;
label: string | JSX.Element;
label: string | React.JSX.Element;
disabled?: boolean;
data?: D;
};
+1 -1
View File
@@ -8,7 +8,7 @@ import { Prettify } from "@/types";
export type BaseOption<T = string, D = unknown> = {
value: T;
label: string | JSX.Element;
label: string | React.JSX.Element;
disabled?: boolean;
data?: D;
};
@@ -91,7 +91,7 @@ export const TournamentSelectField = <
background: `${TimeControlColours[option.data!.timeControl]}`,
}}
>
{at("timeControlEnum", { tc: option.data?.timeControl })}
{at("timeControlEnum", { tc: option.data!.timeControl })}
</div>
<div className="text-xs">{option.data?.date}</div>
</div>
+1 -1
View File
@@ -20,7 +20,7 @@ export type ZoneEditorProps = {
export const ZoneEditor = ({ value, onChange }: ZoneEditorProps) => {
const initialFeatures = React.useRef(value?.features);
const featureGroup = React.useRef<L.FeatureGroup>();
const featureGroup = React.useRef<L.FeatureGroup | null>(null);
const setFeatureCollectionRef = (element: L.FeatureGroup) => {
featureGroup.current = element;