From ba39eb114c5c86546a664fc8ce386e6a14b8aaba 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 60c37ccf..5716e5cd 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -47,7 +47,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 }]), ] } @@ -104,7 +106,9 @@ const signedOutMobileNavigation = [ ] const signedInMobileNavigation = [ - { name: 'Get M$', href: '/add-funds', icon: CashIcon }, + ...(IS_PRIVATE_MANIFOLD + ? [] + : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), ...signedOutMobileNavigation, ]