From 1f67d90f84a2b8e4d96bec28f0bfeef36b04615e Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Tue, 14 Jun 2022 02:08:55 -0700 Subject: [PATCH] Hide "Get M$" on private instances --- web/components/nav/sidebar.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index 8dbd1e0a..5d4070b5 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -48,7 +48,9 @@ function getNavigation(username: string) { icon: NotificationsIcon, }, - { name: 'Get M$', href: '/add-funds', icon: CashIcon }, + ...(IS_PRIVATE_MANIFOLD + ? [] + : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), ] } @@ -102,7 +104,9 @@ const signedOutMobileNavigation = [ ] const mobileNavigation = [ - { name: 'Get M$', href: '/add-funds', icon: CashIcon }, + ...(IS_PRIVATE_MANIFOLD + ? [] + : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), ...signedOutMobileNavigation, ]