Add leaderboards as top level navigation. Remove more option

This commit is contained in:
James Grugett 2022-07-15 00:49:27 -05:00
parent 240355f717
commit bfc1f38477

View File

@ -41,7 +41,13 @@ function getNavigation() {
}, },
...(IS_PRIVATE_MANIFOLD ...(IS_PRIVATE_MANIFOLD
? [] ? [
{
name: 'Leaderboards',
href: `/leaderboards`,
icon: TrendingUpIcon,
},
]
: [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]),
] ]
} }
@ -245,10 +251,6 @@ export default function Sidebar(props: { className?: string }) {
{navigationOptions.map((item) => ( {navigationOptions.map((item) => (
<SidebarItem key={item.href} item={item} currentPage={currentPage} /> <SidebarItem key={item.href} item={item} currentPage={currentPage} />
))} ))}
<MenuButton
menuItems={getMoreNavigation(user)}
buttonContent={<MoreButton />}
/>
{/* Spacer if there are any groups */} {/* Spacer if there are any groups */}
{memberItems.length > 0 && ( {memberItems.length > 0 && (