Skip to content

Commit

Permalink
fix: use useBaseUrl()
Browse files Browse the repository at this point in the history
  • Loading branch information
tetunori committed May 30, 2020
1 parent 1298f8c commit 72b319a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

import {useHistory, useLocation} from '@docusaurus/router';
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';

const SEARCH_PARAM_QUERY = 'q';

function useSearchQuery() {
const history = useHistory();
const location = useLocation();
const {siteConfig: {baseUrl} = {}} = useDocusaurusContext();
const baseUrl = useBaseUrl('');

return {
searchValue:
Expand Down

0 comments on commit 72b319a

Please sign in to comment.