From 521cbc0046e66d5ab243423678cacabfddc0de5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= <52294703+vikibrezinova@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:09:20 +0100 Subject: [PATCH] Fix url for semester administration in menu (#298) add current semester to url --- src/components/PageLayout/MenuMain/MenuMain.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/PageLayout/MenuMain/MenuMain.tsx b/src/components/PageLayout/MenuMain/MenuMain.tsx index 211ab56d..adb599a3 100644 --- a/src/components/PageLayout/MenuMain/MenuMain.tsx +++ b/src/components/PageLayout/MenuMain/MenuMain.tsx @@ -10,6 +10,7 @@ import {CloseButton} from '@/components/CloseButton/CloseButton' import {Loading} from '@/components/Loading/Loading' import Menu from '@/svg/menu.svg' import {MenuItemShort} from '@/types/api/cms' +import {useDataFromURL} from '@/utils/useDataFromURL' import {useHasPermissions} from '@/utils/useHasPermissions' import {useSeminarInfo} from '@/utils/useSeminarInfo' @@ -18,6 +19,7 @@ import styles from './MenuMain.module.scss' export const MenuMain: FC = () => { const {seminar, seminarId} = useSeminarInfo() + const {id} = useDataFromURL() const {hasPermissions} = useHasPermissions() @@ -72,7 +74,7 @@ export const MenuMain: FC = () => { {hasPermissions && ( - + )}