diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/components/dashboard/search/SearchInput.tsx | 2 | ||||
| -rw-r--r-- | apps/web/lib/hooks/bookmark-search.ts | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/search/SearchInput.tsx b/apps/web/components/dashboard/search/SearchInput.tsx index ace3d785..5e46fc18 100644 --- a/apps/web/components/dashboard/search/SearchInput.tsx +++ b/apps/web/components/dashboard/search/SearchInput.tsx @@ -84,7 +84,7 @@ const SearchInput = React.forwardRef< }} /> <QueryExplainerTooltip - className="-translate-1/2 absolute right-1.5 top-2 p-0.5" + className="-translate-1/2 absolute right-1.5 top-2 stroke-foreground p-0.5" parsedSearchQuery={parsedSearchQuery} /> {parsedSearchQuery.result === "full" && diff --git a/apps/web/lib/hooks/bookmark-search.ts b/apps/web/lib/hooks/bookmark-search.ts index 4662ffb6..386355f7 100644 --- a/apps/web/lib/hooks/bookmark-search.ts +++ b/apps/web/lib/hooks/bookmark-search.ts @@ -52,7 +52,7 @@ export function useDoBookmarkSearch() { } export function useBookmarkSearch() { - const { parsedSearchQuery } = useSearchQuery(); + const { searchQuery } = useSearchQuery(); const { data, @@ -64,8 +64,7 @@ export function useBookmarkSearch() { isFetchingNextPage, } = api.bookmarks.searchBookmarks.useInfiniteQuery( { - text: parsedSearchQuery.text, - matcher: parsedSearchQuery.matcher, + text: searchQuery, }, { placeholderData: keepPreviousData, |
