modified: components/LoadingTeamsForm.tsx

modified:   components/RegistrationForm.tsx
	modified:   pages/competition/registration.tsx
master
joker 3 years ago
parent 032b7e8609
commit 1b0eb75c18
  1. 7
      components/LoadingTeamsForm.tsx
  2. 2
      components/RegistrationForm.tsx
  3. 3
      pages/competition/registration.tsx

@ -11,6 +11,8 @@ type UserProps = {
classTeam: string[]; classTeam: string[];
}; };
let number = 0;
export const LoadingTeamsForm : React.FC<UserProps> = ({ export const LoadingTeamsForm : React.FC<UserProps> = ({
team_name, team_name,
name_team_coach, name_team_coach,
@ -28,9 +30,12 @@ export const LoadingTeamsForm : React.FC<UserProps> = ({
}); });
return Math.min.apply(null, arrOfNum.filter(Boolean)); //Math.min(...arrOfNum); return Math.min.apply(null, arrOfNum.filter(Boolean)); //Math.min(...arrOfNum);
} }
number +=1
return ( return (
<tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700"> <tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
<th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
{number}
</th>
<th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap"> <th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
{team_name} {team_name}
</th> </th>

@ -52,7 +52,7 @@ export const RegistrationForm = (props): JSX.Element => {
<div className="md:col-span-1"> <div className="md:col-span-1">
<div className="px-4 sm:px-0"> <div className="px-4 sm:px-0">
<h3 className="text-lg font-medium leading-6">Регистрация команды</h3> <h3 className="text-lg font-medium leading-6">Регистрация команды</h3>
<p className="mt-1 text-sm">Регистрация команд идет до 23.01.2023</p> <p className="mt-1 text-sm">Регистрация команд идет до 26.01.2023</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>
<p className="mt-1 text-sm"> Подписывайтесь на наш <p className="mt-1 text-sm"> Подписывайтесь на наш

@ -37,6 +37,9 @@ export const Registration = (): JSX.Element => {
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400"> <table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400"> <thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr> <tr>
<th scope="col" className="px-6 py-3">
</th>
<th scope="col" className="px-6 py-3"> <th scope="col" className="px-6 py-3">
Название команды Название команды
</th> </th>

Loading…
Cancel
Save