;
- 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) => (
-
+ {head.styles.map((s, key) => (
+
))}
diff --git a/packages/docs/src/components/sidebar/sidebar.tsx b/packages/docs/src/components/sidebar/sidebar.tsx
index 14e4c198c7b..62e2a451a1b 100644
--- a/packages/docs/src/components/sidebar/sidebar.tsx
+++ b/packages/docs/src/components/sidebar/sidebar.tsx
@@ -41,7 +41,7 @@ export function Items({
{items &&
items.map((item, i) => (
- -
+
-
{item.items ? (
pathname === item.href)}
diff --git a/packages/docs/src/routes/docs/layout.tsx b/packages/docs/src/routes/docs/layout.tsx
index e85f274827e..013e4dbe38b 100644
--- a/packages/docs/src/routes/docs/layout.tsx
+++ b/packages/docs/src/routes/docs/layout.tsx
@@ -41,8 +41,8 @@ export default component$(() => {
{breadcrumbs.length > 0 ? (
- {breadcrumbs.map((b) => (
- - {b.text}
+ {breadcrumbs.map((b, key) => (
+ - {b.text}
))}
) : null}