chore(v2): upgrade devDependencies (#2538)

* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
This commit is contained in:
Yangshun Tay 2020-04-05 19:07:44 +08:00 committed by GitHub
parent ea8c916528
commit b07507c9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 2385 additions and 1975 deletions

View file

@ -7,7 +7,7 @@
const path = require('path');
module.exports = function() {
module.exports = function () {
return {
name: 'docusaurus-theme-search-algolia',

View file

@ -13,7 +13,7 @@ import {useHistory} from '@docusaurus/router';
import './styles.css';
const Search = props => {
const Search = (props) => {
const [algoliaLoaded, setAlgoliaLoaded] = useState(false);
const searchBarRef = useRef(null);
const {siteConfig = {}} = useDocusaurusContext();
@ -81,7 +81,7 @@ const Search = props => {
props.handleSearchBarToggle(!props.isSearchBarExpanded);
}, [props.isSearchBarExpanded]);
const handleSearchInput = useCallback(e => {
const handleSearchInput = useCallback((e) => {
const needFocus = e.type !== 'mouseover';
loadAlgolia(needFocus);