diff --git a/src/features/header/TimetableHeader.tsx b/src/features/header/TimetableHeader.tsx index d4f207d..3a21509 100644 --- a/src/features/header/TimetableHeader.tsx +++ b/src/features/header/TimetableHeader.tsx @@ -1,4 +1,5 @@ import HomeIcon from "@/assets/HomeIcon"; +import usePageTitle from "@/hooks/usePageTitle"; import useWindowDimensions from "@/hooks/useWindowDimensions"; import Toggle from "@/shared/Toggle"; import { classes } from "@/styles/utils"; @@ -42,6 +43,8 @@ const TimetableHeader: FC = ({ const group = useParams().group?.trim() ?? ""; const { width } = useWindowDimensions(); const isMobile = width < MOBILE_SCREEN_BREAKPOINT; + const groupTitle = timetableType === "merged" ? "Мій розклад" : group; + usePageTitle(groupTitle); const handleIsExamsTimetableChange = (isExams: boolean) => { const path = @@ -68,7 +71,7 @@ const TimetableHeader: FC = ({ -

{timetableType === "merged" ? "Мій розклад" : group}

+

{groupTitle}

{timetableType !== "selective" && (