From 04456926ef7a96db99ffcfca3b6976aaad401e1c Mon Sep 17 00:00:00 2001 From: rtrembecky Date: Sat, 14 Dec 2024 17:05:56 +0100 Subject: [PATCH] fix #520 - EventRegistration - Create - prefilter Events based on picked grade and the future flag --- .../EventRegistrationCreate.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx b/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx index 9b866f25..75a7cd34 100644 --- a/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx +++ b/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx @@ -30,10 +30,19 @@ export const EventRegistrationCreate: FC = () => { - - - + ) } + +const EventReferenceInput = () => { + const {watch} = useFormContext() + const grade = watch('grade') + + return ( + + + + ) +}