From 11cd8eb8a1ee2f3867fcdc3f55ac83f31855e664 Mon Sep 17 00:00:00 2001 From: gioboa Date: Mon, 23 Dec 2024 08:40:06 +0100 Subject: [PATCH] docs: fix build --- docs/src/components/Toc/Toc.tsx | 6 +++--- docs/src/routes/forwarding-events/index.mdx | 2 +- docs/src/routes/layout.tsx | 6 +++--- docs/src/routes/proxying-requests/index.mdx | 2 +- docs/vite.config.mts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/src/components/Toc/Toc.tsx b/docs/src/components/Toc/Toc.tsx index 6f5a59a0..2b9d1edd 100644 --- a/docs/src/components/Toc/Toc.tsx +++ b/docs/src/components/Toc/Toc.tsx @@ -1,8 +1,8 @@ import { cn } from "~/utils/cn"; import { component$, useSignal, $, useOnWindow } from '@qwik.dev/core'; -import { ContentHeading } from '@qwik.dev/router'; +import type { ContentHeading } from '@qwik.dev/router'; -export const TOC = component$( +export const Toc = component$( ({ headings }: { headings: ContentHeading[] }) => { if (headings.length === 0) { return null; @@ -106,7 +106,7 @@ type RecursiveListProps = { const RecursiveList = component$( ({ tree, activeItem, limit = 3 }) => { - return tree?.children?.length && tree.level < limit ? ( + return tree.children.length && tree.level < limit ? (