diff --git a/.changeset/cyan-plums-cheat.md b/.changeset/cyan-plums-cheat.md new file mode 100644 index 00000000..abf43c08 --- /dev/null +++ b/.changeset/cyan-plums-cheat.md @@ -0,0 +1,5 @@ +--- +"www": patch +--- + +Fix LeftSidebar component not showing on mobile diff --git a/apps/www/src/app/(docs)/layout.tsx b/apps/www/src/app/(docs)/layout.tsx index 5947baee..2bdcdd83 100644 --- a/apps/www/src/app/(docs)/layout.tsx +++ b/apps/www/src/app/(docs)/layout.tsx @@ -19,7 +19,7 @@ export default async function DocsLayout({ children }: DocsLayoutProps) { <>
- +
@@ -41,7 +41,11 @@ export default async function DocsLayout({ children }: DocsLayoutProps) {
- + {children}
diff --git a/apps/www/src/app/(marketing)/layout.tsx b/apps/www/src/app/(marketing)/layout.tsx index bdc4d312..f0ec17d3 100644 --- a/apps/www/src/app/(marketing)/layout.tsx +++ b/apps/www/src/app/(marketing)/layout.tsx @@ -1,10 +1,12 @@ import Link from 'next/link' import { DocSearch } from '@/components/doc-search' +import { LeftSidebar } from '@/components/docs/left-sidebar' import { MainNav } from '@/components/main-nav' import { GitHub } from '@/components/ui/icons' -import { marketingConfig } from '@/config/marketing' +import { docsConfig } from '@/config/docs' import { siteConfig } from '@/config/site' +import { getHookList } from '@/lib/api' type MarketingLayoutProps = { children: React.ReactNode @@ -13,11 +15,15 @@ type MarketingLayoutProps = { export default async function MarketingLayout({ children, }: MarketingLayoutProps) { + const hooks = await getHookList() + return ( <>
- + + +