From 7fc3929a67fe4bf790e5b978c41d1844299af486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= Date: Thu, 22 Aug 2024 19:32:35 +0200 Subject: [PATCH] add button for freezing series and semester --- .../SemesterAdministration.tsx | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/src/components/SemesterAdministration/SemesterAdministration.tsx b/src/components/SemesterAdministration/SemesterAdministration.tsx index 8fcf0ef4..6d4f63b4 100644 --- a/src/components/SemesterAdministration/SemesterAdministration.tsx +++ b/src/components/SemesterAdministration/SemesterAdministration.tsx @@ -14,6 +14,7 @@ import {Loading} from '../Loading/Loading' import {PublicationUploader} from '../PublicationUploader/PublicationUploader' import {Result} from '../Results/ResultsRow' import styles from './SemesterAdministration.module.scss' +import { SecurityUpdateSharp } from '@mui/icons-material' interface PostalCard { code: number @@ -102,21 +103,33 @@ export const SemesterAdministration: FC = () => { return ( <> Administrácia semestra pre opravovateľov. + + + {semester.series_set.map((series) => ( - - {series.order}. séria - - Opravovanie úloh: - - Termín série: {formatDateTime(series.deadline)} - - - - {series?.problems.map((problem) => ( - - {problem.order}. úloha - - ))} + + + {series.order}. séria + + + + + Opravovanie úloh: + + Termín série: {formatDateTime(series.deadline)} + + + + {series?.problems.map((problem) => ( + + {problem.order}. úloha + + ))} + ))}