Skip to content

Commit

Permalink
add semesterPicker to administration
Browse files Browse the repository at this point in the history
  • Loading branch information
vikibrezinova committed Dec 10, 2023
1 parent 67056c0 commit 11bc08e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.textarea {
width: 100%;
}

.semesterPicker {
display: flex;
justify-content: flex-end;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type Styles = {
textarea: string
semesterPicker: SemesterPicker
}

export type ClassNames = keyof Styles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -95,6 +96,9 @@ export const SemesterAdministration: FC = () => {

return (
<>
<div className={styles.semesterPicker}>
<SemesterPicker page="admin/opravovanie" />
</div>
<Typography variant="h1">
{semester.year}. ročník ({semester.school_year}) - {semester.season_code === 0 ? 'zima' : 'leto'}
</Typography>
Expand Down

0 comments on commit 11bc08e

Please sign in to comment.