From 9ed054e5d06a3879fc0a214e341db44eb45dc17a Mon Sep 17 00:00:00 2001 From: yohlo Date: Mon, 9 Feb 2026 23:44:07 -0600 Subject: [PATCH] regionals on tournament form --- .../tournaments/components/manage-tournament.tsx | 1 + src/features/tournaments/components/tournament-form.tsx | 9 ++++++++- src/features/tournaments/types.ts | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/features/tournaments/components/manage-tournament.tsx b/src/features/tournaments/components/manage-tournament.tsx index 79902ad..cc06644 100644 --- a/src/features/tournaments/components/manage-tournament.tsx +++ b/src/features/tournaments/components/manage-tournament.tsx @@ -87,6 +87,7 @@ const ManageTournament = ({ tournamentId }: ManageTournamentProps) => { start_time: tournament.start_time, enroll_time: tournament.enroll_time, end_time: tournament.end_time, + regional: tournament.regional, }} close={closeEditTournament} /> diff --git a/src/features/tournaments/components/tournament-form.tsx b/src/features/tournaments/components/tournament-form.tsx index 8a7df2d..24d1250 100644 --- a/src/features/tournaments/components/tournament-form.tsx +++ b/src/features/tournaments/components/tournament-form.tsx @@ -1,4 +1,4 @@ -import { FileInput, Stack, TextInput, Textarea } from "@mantine/core"; +import { FileInput, Stack, TextInput, Textarea, Checkbox } from "@mantine/core"; import { useForm, UseFormInput } from "@mantine/form"; import { LinkIcon } from "@phosphor-icons/react"; import SlidePanel, { SlidePanelField } from "@/components/sheet/slide-panel"; @@ -35,6 +35,7 @@ const TournamentForm = ({ enroll_time: initialValues?.enroll_time || "", end_time: initialValues?.end_time || "", logo: undefined, + regional: initialValues?.regional || false, }, onSubmitPreventDefault: "always", validate: { @@ -150,6 +151,12 @@ const TournamentForm = ({ minRows={3} /> + + ;