modified: components/LoadingTeamsForm.tsx

modified:   components/RegistrationForm.tsx
	modified:   components/UX/Link.tsx
	new file:   public/competition_pub/consent_of_the_legal_representative.docx
master
joker 3 years ago
parent 06e40bfc77
commit 8baa897b62
  1. 3
      components/LoadingTeamsForm.tsx
  2. 8
      components/RegistrationForm.tsx
  3. 2
      components/UX/Link.tsx
  4. BIN
      public/competition_pub/consent_of_the_legal_representative.docx

@ -17,7 +17,6 @@ export const LoadingTeamsForm : React.FC<UserProps> = ({
training_institution_team, training_institution_team,
name_first_participant, name_first_participant,
name_second_participant, name_second_participant,
name_third_party,
nominations, nominations,
classTeam classTeam
}) => { }) => {
@ -42,7 +41,7 @@ export const LoadingTeamsForm : React.FC<UserProps> = ({
{training_institution_team} {training_institution_team}
</td> </td>
<td className="px-6 py-4"> <td className="px-6 py-4">
{name_first_participant +', ' + name_second_participant + ', ' + name_third_party} {name_first_participant +', ' + name_second_participant}
</td> </td>
<td className="px-6 py-4"> <td className="px-6 py-4">
{ flatten(classTeam)} { flatten(classTeam)}

@ -1,6 +1,7 @@
import React,{useRef} from 'react'; import React,{useRef} from 'react';
import { useForm, SubmitHandler, FormProvider } from "react-hook-form"; import { useForm, SubmitHandler, FormProvider } from "react-hook-form";
import { Select, Input, Link, SelectNominations } from "./UX"; import { Select, Input, Link_str, SelectNominations } from "./UX";
import Link from 'next/link';
interface IFormInputs { interface IFormInputs {
name_team_coach: string, name_team_coach: string,
@ -55,7 +56,7 @@ export const RegistrationForm = (props): JSX.Element => {
<p className="mt-1 text-sm">Введите актуальные данные команды</p> <p className="mt-1 text-sm">Введите актуальные данные команды</p>
<p className="mt-1 text-sm">От каждого учебного заведения может быть зарегистрировано неограниченное количество команд</p> <p className="mt-1 text-sm">От каждого учебного заведения может быть зарегистрировано неограниченное количество команд</p>
<p className="mt-1 text-sm"> Подписывайтесь на наш <p className="mt-1 text-sm"> Подписывайтесь на наш
<Link href="https://t.me/robotop_competition"> Telegram канал</Link> <Link_str href="https://t.me/robotop_competition"> Telegram канал</Link_str>
, что-бы быть в курсе новостей про соревнование </p> , что-бы быть в курсе новостей про соревнование </p>
</div> </div>
</div> </div>
@ -111,6 +112,9 @@ export const RegistrationForm = (props): JSX.Element => {
<label className="form-check-label inline-block text-gray-800" > <label className="form-check-label inline-block text-gray-800" >
Нажимая на кнопку &quot;Зарегистрировать команду&quot;, настоящим участники (их законные представители) и тренер (руководитель) подтверждают свое согласие на обработку персональных данных МАОУ СОШ 94 Нажимая на кнопку &quot;Зарегистрировать команду&quot;, настоящим участники (их законные представители) и тренер (руководитель) подтверждают свое согласие на обработку персональных данных МАОУ СОШ 94
</label> </label>
<Link href={`/competition_pub/consent_of_the_legal_representative.docx`}>
<a className="buttonMargin inline-block px-2 py-2 rounded-md text-white dark:text-white bg-blue-600 hover:bg-blue-700 hover:text-white dark:hover:text-white" >Скачать согласие законного представителя </a>
</Link>
</div> </div>
<div className="px-4 py-3 bg-gray-50 text-right sm:px-6"> <div className="px-4 py-3 bg-gray-50 text-right sm:px-6">
<button <button

@ -5,7 +5,7 @@ type Props = {
href: string; href: string;
} }
export const Link: React.FC<Props> = ({children, href}) => { export const Link_str: React.FC<Props> = ({children, href}) => {
return( return(
<> <>
<a href={href} target='_blank' rel="noreferrer" className="dark:text-white">{children}</a> <a href={href} target='_blank' rel="noreferrer" className="dark:text-white">{children}</a>

Loading…
Cancel
Save