mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined (#1909)
* fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined * nits * Docs docs * inaccuracy * changelog * nits
This commit is contained in:
parent
f853171791
commit
64871b76e4
6 changed files with 67 additions and 13 deletions
|
@ -8,7 +8,6 @@
|
|||
import React, {
|
||||
useState,
|
||||
useEffect,
|
||||
Fragment,
|
||||
useContext,
|
||||
useRef,
|
||||
useCallback,
|
||||
|
@ -60,7 +59,7 @@ const Search = props => {
|
|||
);
|
||||
|
||||
return isEnabled ? (
|
||||
<Fragment>
|
||||
<div className="navbar__search" key="search-box">
|
||||
<span
|
||||
role="button"
|
||||
className={classnames('search-icon', {
|
||||
|
@ -84,7 +83,7 @@ const Search = props => {
|
|||
onBlur={toggleSearchIconClick}
|
||||
ref={searchBarRef}
|
||||
/>
|
||||
</Fragment>
|
||||
</div>
|
||||
) : null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue