Skip to content

Commit

Permalink
Add link to rules to problems page (again) (#429)
Browse files Browse the repository at this point in the history
* Add link to rules to problems page (again)

* fix wrapping

---------

Co-authored-by: rtrembecky <[email protected]>
  • Loading branch information
Matushl and rtrembecky authored Nov 21, 2024
1 parent 9804a3c commit 53546f5
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/components/Problems/Problems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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 @@ -155,13 +157,21 @@ export const Problems: FC = () => {
<LoginForm closeDialog={closeLoginDialog} />
</Stack>
</Dialog>

<Stack gap={5}>
<Typography variant="body1" display="inline-flex">
Ak si nevieš poradiť s niektorou z úloh, pozri si{' '}
<Link variant="button2" href={`/${seminar}/ako-riesit`}>
pár tipov
<Stack direction="row" justifyContent="space-between" flexWrap="wrap">
<Stack direction="row" flexWrap="wrap">
<Typography variant="body1" display="inline-flex" mr={0.5}>
Ak si nevieš poradiť s niektorou z úloh, pozri si
</Typography>
<Link variant="button2" href={`/${seminar}/ako-riesit`}>
pár tipov
</Link>
</Stack>
<Link variant="button2" href={rulesLink}>
Pravidlá
</Link>
</Typography>
</Stack>
{(loading.semesterListIsLoading ||
loading.currentSeriesIsLoading ||
seriesIsLoading ||
Expand Down

0 comments on commit 53546f5

Please sign in to comment.