From 160cfc455f4af0ce912d285873bd3bebad1f8a95 Mon Sep 17 00:00:00 2001 From: Matt Woenker Date: Wed, 8 Jan 2025 17:24:17 -0500 Subject: [PATCH] Use new search link APi --- src/theme/SearchBar/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/theme/SearchBar/index.js b/src/theme/SearchBar/index.js index 53fe66e3f05..9533494a13e 100644 --- a/src/theme/SearchBar/index.js +++ b/src/theme/SearchBar/index.js @@ -3,8 +3,7 @@ import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react'; import Head from '@docusaurus/Head'; import Link from '@docusaurus/Link'; import {useHistory} from '@docusaurus/router'; -import {isRegexpStringMatch} from '@docusaurus/theme-common'; -import {useSearchPage} from '@docusaurus/theme-common/internal'; +import {isRegexpStringMatch, useSearchLinkCreator} from '@docusaurus/theme-common'; import { useAlgoliaContextualFacetFilters, useSearchResultUrlProcessor, @@ -18,7 +17,7 @@ function Hit({hit, children}) { return {children}; } function ResultsFooter({state, onClose}) { - const {generateSearchPageLink} = useSearchPage(); + const generateSearchPageLink = useSearchLinkCreator(); return (