From 179c10a53f1bc7b6e74eb4922ed0cc499813b1f7 Mon Sep 17 00:00:00 2001 From: Shaokun-X Date: Tue, 23 Nov 2021 20:05:41 +0100 Subject: [PATCH] Wrap mobile search bar in env condition (#573) Co-authored-by: Gonzalo Pozzo --- components/common/Navbar/Navbar.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/common/Navbar/Navbar.tsx b/components/common/Navbar/Navbar.tsx index 2ce5f33b8..962639f97 100644 --- a/components/common/Navbar/Navbar.tsx +++ b/components/common/Navbar/Navbar.tsx @@ -43,9 +43,11 @@ const Navbar: FC = ({ links }) => ( -
- -
+ {process.env.COMMERCE_SEARCH_ENABLED && ( +
+ +
+ )} )