From 2d79d7f8dbf98eeee28d99cbad4418cb13d8f63f Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 29 Jun 2022 12:33:20 -0500 Subject: [PATCH] Rework nav to show list of groups (#596) * Rework nav to show list of groups * Fix lint * Replace Portfolio with Profile link * Lint: remove unused vars --- web/components/nav/nav-bar.tsx | 55 +++++++------- web/components/nav/sidebar.tsx | 133 ++++++++++++++++----------------- 2 files changed, 90 insertions(+), 98 deletions(-) diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx index 23c9ab38..5a997b46 100644 --- a/web/components/nav/nav-bar.tsx +++ b/web/components/nav/nav-bar.tsx @@ -3,7 +3,6 @@ import Link from 'next/link' import { HomeIcon, MenuAlt3Icon, - PresentationChartLineIcon, SearchIcon, XIcon, } from '@heroicons/react/outline' @@ -19,14 +18,9 @@ import NotificationsIcon from 'web/components/notifications-icon' import { useIsIframe } from 'web/hooks/use-is-iframe' import { trackCallback } from 'web/lib/service/analytics' -function getNavigation(username: string) { +function getNavigation() { return [ { name: 'Home', href: '/home', icon: HomeIcon }, - { - name: 'Portfolio', - href: `/${username}?tab=bets`, - icon: PresentationChartLineIcon, - }, { name: 'Notifications', href: `/notifications`, @@ -55,38 +49,39 @@ export function BottomNavBar() { } const navigationOptions = - user === null - ? signedOutNavigation - : getNavigation(user?.username || 'error') + user === null ? signedOutNavigation : getNavigation() return (