4
0
forked from crowetic/commerce

Wrap mobile search bar in env condition (#573)

Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
This commit is contained in:
Shaokun-X 2021-11-23 20:05:41 +01:00 committed by GitHub
parent 5e529dca96
commit 179c10a53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,9 +43,11 @@ const Navbar: FC<NavbarProps> = ({ links }) => (
<UserNav />
</div>
</div>
<div className="flex pb-4 lg:px-6 lg:hidden">
<Searchbar id="mobile-search" />
</div>
{process.env.COMMERCE_SEARCH_ENABLED && (
<div className="flex pb-4 lg:px-6 lg:hidden">
<Searchbar id="mobile-search" />
</div>
)}
</Container>
</NavbarRoot>
)