From 64c83c4ef021c269a90f6ee2b51faef22ca534c3 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 14 Jul 2022 23:56:30 -0500 Subject: [PATCH 1/2] Don't show portfolio no history message --- web/components/portfolio/portfolio-value-section.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/portfolio/portfolio-value-section.tsx b/web/components/portfolio/portfolio-value-section.tsx index 903b3f3d..22f1478f 100644 --- a/web/components/portfolio/portfolio-value-section.tsx +++ b/web/components/portfolio/portfolio-value-section.tsx @@ -16,7 +16,7 @@ export const PortfolioValueSection = memo( const [portfolioPeriod, setPortfolioPeriod] = useState('allTime') if (portfolioHistory.length === 0 || !lastPortfolioMetrics) { - return
No portfolio history data yet
+ return <> } return ( From 36851ae9f9d5035d6c509c113122b5fb485e6cf5 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 15 Jul 2022 00:45:50 -0500 Subject: [PATCH 2/2] Exclude more mobile options from private instances --- web/components/nav/sidebar.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index f4abc6c7..1ff59275 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -110,9 +110,13 @@ const signedInMobileNavigation = [ function getMoreMobileNav() { return [ - { name: 'Send M$', href: '/links' }, - { name: 'Charity', href: '/charity' }, - { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh' }, + ...(IS_PRIVATE_MANIFOLD + ? [] + : [ + { name: 'Send M$', href: '/links' }, + { name: 'Charity', href: '/charity' }, + { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh' }, + ]), { name: 'Leaderboards', href: '/leaderboards' }, { name: 'Sign out',