Hide search if no API key
This commit is contained in:
parent
86e3239b93
commit
f3f7bf2a9f
|
@ -53,9 +53,11 @@ const Header: StatelessComponent<HeaderProps> = ({ handleSidebarToggle }): React
|
||||||
|
|
||||||
<div className="docs-top-utilities d-flex justify-content-between justify-content-lg-end align-items-center">
|
<div className="docs-top-utilities d-flex justify-content-between justify-content-lg-end align-items-center">
|
||||||
<div className="top-search-box d-none d-lg-flex">
|
<div className="top-search-box d-none d-lg-flex">
|
||||||
|
{process.env.GATSBY_DOCSEARCH_API_KEY && (
|
||||||
<form className="search-form">
|
<form className="search-form">
|
||||||
<SearchBox identifier="header-search" />
|
<SearchBox identifier="header-search" />
|
||||||
</form>
|
</form>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<ul className="social-list list-inline d-flex flex-grow-1 flex-lg-grow-0 align-items-center justify-content-lg-center justify-content-end justify-content-lg-end">
|
<ul className="social-list list-inline d-flex flex-grow-1 flex-lg-grow-0 align-items-center justify-content-lg-center justify-content-end justify-content-lg-end">
|
||||||
<li className="list-inline-item version-select">
|
<li className="list-inline-item version-select">
|
||||||
|
|
Loading…
Reference in New Issue