From b8608c493cf19fbad8abda809a559dfe67673589 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 11 Apr 2025 11:56:22 +0200 Subject: [PATCH] refactor: Rename SearchResult to SearchResultItem and fix types --- app/components/syntax/Search.tsx | 15 ++++++++------- app/data/docs/react/page.md | 4 ++-- app/pages/+title.ts | 5 +++++ app/pages/buildTitle.ts | 7 +++++++ app/pages/docs/+data.ts | 6 ++++-- 5 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 app/pages/+title.ts create mode 100644 app/pages/buildTitle.ts diff --git a/app/components/syntax/Search.tsx b/app/components/syntax/Search.tsx index 26d8241..6f76292 100644 --- a/app/components/syntax/Search.tsx +++ b/app/components/syntax/Search.tsx @@ -111,7 +111,7 @@ function HighlightQuery({ text, query }: { text: string; query: string }) { ); } -function SearchResult({ +function SearchResultItem({ result, autocomplete, collection, @@ -187,7 +187,7 @@ function SearchResults({ return (