From a29ea2ede5358b01a8357e707fd59d46e8600c6a Mon Sep 17 00:00:00 2001 From: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Date: Sun, 22 Oct 2023 21:33:04 +0200 Subject: [PATCH] chore(docs): remove warnings (#5345) --- packages/docs/src/components/code-sandbox/index.tsx | 1 + .../docs/src/components/docsearch/doc-search.tsx | 2 +- .../docs/src/components/docsearch/search-box.tsx | 10 ++++++++-- .../docs/src/components/router-head/router-head.tsx | 12 ++++++------ packages/docs/src/components/sidebar/sidebar.tsx | 2 +- packages/docs/src/routes/docs/layout.tsx | 4 ++-- 6 files changed, 19 insertions(+), 12 deletions(-) diff --git a/packages/docs/src/components/code-sandbox/index.tsx b/packages/docs/src/components/code-sandbox/index.tsx index 0141e91a3ba..a19ad1c1b78 100644 --- a/packages/docs/src/components/code-sandbox/index.tsx +++ b/packages/docs/src/components/code-sandbox/index.tsx @@ -21,6 +21,7 @@ export default component$<{
{tabs.map((tab, idx) => ( (activeTab.value = idx)} class={{ tab: true, active: idx == activeTab.value }} > diff --git a/packages/docs/src/components/docsearch/doc-search.tsx b/packages/docs/src/components/docsearch/doc-search.tsx index 8a6db5658d6..5d26fbff194 100644 --- a/packages/docs/src/components/docsearch/doc-search.tsx +++ b/packages/docs/src/components/docsearch/doc-search.tsx @@ -71,7 +71,7 @@ export const DocSearch = component$((props: DocSearchProps) => { snippetLength: 10, }); - const searchButtonRef = useSignal(); + const searchButtonRef = useSignal(); return (
; - onClose$: () => void; + onClose$: PropFunction<() => void>; } export const SearchBox = component$((props: SearchBoxProps) => { diff --git a/packages/docs/src/components/router-head/router-head.tsx b/packages/docs/src/components/router-head/router-head.tsx index 75da68471ff..91c2a3347b4 100644 --- a/packages/docs/src/components/router-head/router-head.tsx +++ b/packages/docs/src/components/router-head/router-head.tsx @@ -82,16 +82,16 @@ export const RouterHead = component$(() => { )} - {head.meta.map((m) => ( - + {head.meta.map((m, key) => ( + ))} - {head.links.map((l) => ( - + {head.links.map((l, key) => ( + ))} - {head.styles.map((s) => ( -