Add notification for "Other" tournament types

This commit is contained in:
Timothy Armes
2024-10-21 15:19:28 +02:00
parent ee031588ff
commit 7c1aa60c3f
5 changed files with 19 additions and 24 deletions
+2 -20
View File
@@ -2,12 +2,7 @@ import React from "react";
import { FeatureCollection } from "geojson";
import dynamic from "next/dynamic";
import {
Controller,
FieldPath,
FieldValues,
useFormContext,
} from "react-hook-form";
import { Controller, FieldPath, FieldValues } from "react-hook-form";
import { Prettify } from "@/types";
@@ -35,20 +30,7 @@ export const ZoneEditorField = <
>(
props: ZoneEditorFieldProps<TFieldValues, TFieldName>,
) => {
const {
name,
control,
label,
className,
labelClassName,
childrenWrapperClassName,
hideErrorMessage,
...rest
} = props;
const form = useFormContext<TFieldValues>();
const { name, control, label, className, labelClassName } = props;
return (
<Field