Skip to content

Commit

Permalink
Add link to rules to problems page
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Apr 13, 2024
1 parent 24d75be commit 127960d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Problems/Problems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export const Problems: FC = () => {
const [displayLoginDialog, setDisplayLoginDialog] = useState<boolean>(false)
const closeLoginDialog = () => setDisplayLoginDialog(false)

const rulesLink = `/${seminar}/akcie/${seminar}/pravidla`

return (
<>
<Dialog
Expand Down Expand Up @@ -168,6 +170,11 @@ export const Problems: FC = () => {
</Stack>
</Dialog>

<Stack direction="row" justifyContent="end" gap={5} mb={5}>
<Link variant="button1" href={rulesLink}>
Pravidlá
</Link>
</Stack>
<Stack gap={5}>
{(loading.semesterListIsLoading ||
loading.currentSeriesIsLoading ||
Expand Down

0 comments on commit 127960d

Please sign in to comment.