From 11bc08e2d53e13abc9249adbfea9684f87ef5a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= Date: Sun, 10 Dec 2023 13:59:18 +0100 Subject: [PATCH] add semesterPicker to administration --- .../SemesterAdministration.module.scss | 5 +++++ .../SemesterAdministration.module.scss.d.ts | 1 + .../SemesterAdministration/SemesterAdministration.tsx | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/components/SemesterAdministration/SemesterAdministration.module.scss b/src/components/SemesterAdministration/SemesterAdministration.module.scss index d9476036..c3734551 100644 --- a/src/components/SemesterAdministration/SemesterAdministration.module.scss +++ b/src/components/SemesterAdministration/SemesterAdministration.module.scss @@ -1,3 +1,8 @@ .textarea { width: 100%; +} + +.semesterPicker { + display: flex; + justify-content: flex-end; } \ No newline at end of file diff --git a/src/components/SemesterAdministration/SemesterAdministration.module.scss.d.ts b/src/components/SemesterAdministration/SemesterAdministration.module.scss.d.ts index 09e0f310..2e41f22b 100644 --- a/src/components/SemesterAdministration/SemesterAdministration.module.scss.d.ts +++ b/src/components/SemesterAdministration/SemesterAdministration.module.scss.d.ts @@ -1,5 +1,6 @@ export type Styles = { textarea: string + semesterPicker: SemesterPicker } export type ClassNames = keyof Styles diff --git a/src/components/SemesterAdministration/SemesterAdministration.tsx b/src/components/SemesterAdministration/SemesterAdministration.tsx index 9cf190e1..ed8c7907 100644 --- a/src/components/SemesterAdministration/SemesterAdministration.tsx +++ b/src/components/SemesterAdministration/SemesterAdministration.tsx @@ -6,6 +6,7 @@ import {FC, useState} from 'react' import {Button} from '@/components/Clickable/Button' import {Link} from '@/components/Clickable/Link' +import {SemesterPicker} from '@/components/SemesterPicker/SemesterPicker' import {SemesterWithProblems} from '@/types/api/generated/competition' import {formatDateTime} from '@/utils/formatDate' import {useHasPermissions} from '@/utils/useHasPermissions' @@ -95,6 +96,9 @@ export const SemesterAdministration: FC = () => { return ( <> +
+ +
{semester.year}. ročník ({semester.school_year}) - {semester.season_code === 0 ? 'zima' : 'leto'}