import React,{useRef} from 'react'; import { useForm, SubmitHandler, FormProvider } from "react-hook-form"; import { Select, Input, Link_str, SelectNominations } from "./UX"; import Link from 'next/link'; interface IFormInputs { name_team_coach: string, coach_telefon_number: string, nominations: string, city_team: string, training_institution_team: string, team_name: string, name_first_participant: string, first_partial_class: number, name_second_participant: string, second_class: number, name_third_party: string, third_part_class: number, body?: string[] | number[] } const defaultValues = { name_team_coach: '', coach_telefon_number: '', nominations: '0', city_team: '', training_institution_team: '', team_name: '', name_first_participant: '', first_partial_class: 0, name_second_participant: '', second_class: 0, name_third_party: 'нет', third_part_class: 0, }; export const RegistrationForm_old = (props): JSX.Element => { const form = useRef(null); const methods = useForm({ defaultValues }); const onSubmit: SubmitHandler = data => { fetch('/api/registration', { method: 'POST', body: Object.values(data) as any}) .then((data) => { props.updateData(data); }) methods.reset(defaultValues); } return ( <>

Регистрация команды

Регистрация команд идет до 22.05.2023

Введите актуальные данные команды

От каждого учебного заведения может быть зарегистрировано неограниченное количество команд

Подписывайтесь на наш Telegram канал , чтобы быть в курсе новостей про соревнование