From 5e4a205025d96eaf0771a93b9484e4045d8d2dd2 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Tue, 1 Mar 2022 17:30:49 -0800 Subject: [PATCH] Hide Discord & About Page too --- web/components/profile-menu.tsx | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/web/components/profile-menu.tsx b/web/components/profile-menu.tsx index 919a2031..342b20f4 100644 --- a/web/components/profile-menu.tsx +++ b/web/components/profile-menu.tsx @@ -55,27 +55,32 @@ function getNavigationOptions( name: 'Your trades', href: '/trades', }, - // Disable "Add Funds" for teams + // Disable irrelevant menu options for teams. ...(IS_PRIVATE_MANIFOLD - ? [] + ? [ + { + name: 'Leaderboards', + href: '/leaderboards', + }, + ] : [ { name: 'Add funds', href: '/add-funds', }, + { + name: 'Leaderboards', + href: '/leaderboards', + }, + { + name: 'Discord', + href: 'https://discord.gg/eHQBNBqXuh', + }, + { + name: 'About', + href: '/about', + }, ]), - { - name: 'Leaderboards', - href: '/leaderboards', - }, - { - name: 'Discord', - href: 'https://discord.gg/eHQBNBqXuh', - }, - { - name: 'About', - href: '/about', - }, { name: 'Sign out', href: '#',