mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function() {
|
||||
module.exports = function () {
|
||||
return {
|
||||
name: 'docusaurus-theme-search-algolia',
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue