diff --git a/client/components/docs/DocsLayout.tsx b/client/components/docs/DocsLayout.tsx index 61f85c4d..e90318c4 100644 --- a/client/components/docs/DocsLayout.tsx +++ b/client/components/docs/DocsLayout.tsx @@ -1,5 +1,5 @@ import React, { useState, useMemo } from "react"; -import { Link, useLocation } from "react-router-dom"; +import { Link, useLocation, Outlet } from "react-router-dom"; import { Search, Menu, @@ -81,8 +81,8 @@ const docNavigation: DocNavItem[] = [ ]; interface DocsLayoutProps { - children: React.ReactNode; - title: string; + children?: React.ReactNode; + title?: string; description?: string; breadcrumbs?: Array<{ label: string; path?: string }>; tableOfContents?: Array<{ id: string; label: string; level: number }>; @@ -90,7 +90,7 @@ interface DocsLayoutProps { export default function DocsLayout({ children, - title, + title = "Documentation", description, breadcrumbs, tableOfContents = [], @@ -211,16 +211,19 @@ export default function DocsLayout({
{description}
- )} -{description}
+ )} +