diff --git a/app/frontend/src/components/Navigation/NavigationHeadline.tsx b/app/frontend/src/components/Navigation/NavigationHeadline.tsx index 2897b26..b0ef547 100644 --- a/app/frontend/src/components/Navigation/NavigationHeadline.tsx +++ b/app/frontend/src/components/Navigation/NavigationHeadline.tsx @@ -15,17 +15,25 @@ const Link = styled(RouterLink)({ textDecoration: "none", }); -type NavigationHeadlineProps = Partial>; +type NavigationHeadlineProps = + | (Partial> & { + href?: undefined; + }) + | { + href?: string; + to?: undefined; + }; const NavigationHeadline: React.FC< React.PropsWithChildren > = (props) => { - const { children, to } = props; + const { children, href, to } = props; return ( {to && {children}} - {!to && children} + {href && {children}} + {!to && !href && children} ); };