diff --git a/packages/web_ui/src/components/PageLayout.tsx b/packages/web_ui/src/components/PageLayout.tsx index 37cae78b..8a9ce1e7 100644 --- a/packages/web_ui/src/components/PageLayout.tsx +++ b/packages/web_ui/src/components/PageLayout.tsx @@ -13,11 +13,15 @@ type PageLayoutProps = { }; export default function PageLayout(props: PageLayoutProps) { return <> - - {props.nav.map((part, index) => - {part.path ? {part.name} : part.name} - )} - + ( + route.href ? {route.title} : route.title + )} + items={props.nav.map( + (part, index) => ({ href: part.path, title: part.name })) + } + /> {props.children}