diff --git a/src/components/PageLayout/PageLayout.tsx b/src/components/PageLayout/PageLayout.tsx index 5c56311b..0173c82c 100644 --- a/src/components/PageLayout/PageLayout.tsx +++ b/src/components/PageLayout/PageLayout.tsx @@ -4,7 +4,7 @@ import {FC, ReactNode} from 'react' import {BannerContainer} from '@/utils/BannerContainer' import {PageTitleContainer} from '@/utils/PageTitleContainer' -import {useSeminarInfo} from '@/utils/useSeminarInfo' +import {Seminar, useSeminarInfo} from '@/utils/useSeminarInfo' import {Footer} from './Footer/Footer' import {MenuMain} from './MenuMain/MenuMain' @@ -18,7 +18,6 @@ type PageLayoutProps = { children: ReactNode } -export type Seminar = 'strom' | 'matik' | 'malynar' const seminarTitle: Record = { strom: 'STROM', matik: 'Matik', @@ -33,7 +32,8 @@ export const PageLayout: FC = ({contentWidth = 2, title = '', c <> - {title} | {seminarTitle[seminar]} + {title && `${title} | `} + {seminarTitle[seminar]}