chore(v2): fix code style (revert previous changes)

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:38:12 +03:00
parent 1480a7eb80
commit 1f00d15c74
143 changed files with 457 additions and 458 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);