diff --git a/src/components/SemesterAdministration/SemesterAdministration.tsx b/src/components/SemesterAdministration/SemesterAdministration.tsx index 43cf2b05..bffacf31 100644 --- a/src/components/SemesterAdministration/SemesterAdministration.tsx +++ b/src/components/SemesterAdministration/SemesterAdministration.tsx @@ -1,7 +1,8 @@ import {Stack, Typography} from '@mui/material' +import Grid from '@mui/material/Unstable_Grid2' import {useMutation, useQuery} from '@tanstack/react-query' import axios, {AxiosError} from 'axios' -import {FC, useState} from 'react' +import {FC, Fragment, useState} from 'react' import {Button} from '@/components/Clickable/Button' import {Link} from '@/components/Clickable/Link' @@ -149,13 +150,21 @@ export const SemesterAdministration: FC = () => { Termín série: {formatDateTime(series.deadline)} - - {series?.problems.map((problem) => ( - - {problem.order}. úloha - - ))} - + + {series?.problems.map((problem) => { + return ( + + + + {problem.order}. úloha + + + (0/0) + x + + ) + })} + ))} diff --git a/src/types/api/generated/competition.ts b/src/types/api/generated/competition.ts index 78610e60..2d1eb8d7 100644 --- a/src/types/api/generated/competition.ts +++ b/src/types/api/generated/competition.ts @@ -66,6 +66,8 @@ export interface ProblemCorrection { export interface Problem { id: number submitted?: any + num_solutions: number + num_corrected_solutions: number text: string order: number image?: any | null