From acb0a6efad50a94187438543ed41f0123d24314f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= Date: Sun, 10 Dec 2023 00:06:05 +0100 Subject: [PATCH] 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 && ( - + )}