diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index 0b3d9393..67981b74 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -8,6 +8,7 @@ import { UserGroupIcon, ChevronDownIcon, TrendingUpIcon, + ChatIcon, } from '@heroicons/react/outline' import clsx from 'clsx' import Link from 'next/link' @@ -25,6 +26,7 @@ import { useMemberGroups } from 'web/hooks/use-group' import { groupPath } from 'web/lib/firebase/groups' import { trackCallback, withTracking } from 'web/lib/service/analytics' import { Group } from 'common/group' +import { Spacer } from '../layout/spacer' function getNavigation() { return [ @@ -82,8 +84,20 @@ const signedOutNavigation = [ ] const signedOutMobileNavigation = [ + { + name: 'About', + href: 'https://docs.manifold.markets/$how-to', + icon: BookOpenIcon, + }, { name: 'Charity', href: '/charity', icon: HeartIcon }, { name: 'Leaderboards', href: '/leaderboards', icon: TrendingUpIcon }, + { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh', icon: ChatIcon }, +] + +const signedInMobileNavigation = [ + ...(IS_PRIVATE_MANIFOLD + ? [] + : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), { name: 'About', href: 'https://docs.manifold.markets/$how-to', @@ -91,17 +105,12 @@ const signedOutMobileNavigation = [ }, ] -const signedInMobileNavigation = [ - ...(IS_PRIVATE_MANIFOLD - ? [] - : [{ name: 'Get M$', href: '/add-funds', icon: CashIcon }]), - ...signedOutMobileNavigation, -] - function getMoreMobileNav() { return [ + { name: 'Send M$', href: '/links' }, + { name: 'Charity', href: '/charity' }, { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh' }, - { name: 'Statistics', href: '/stats' }, + { name: 'Leaderboards', href: '/leaderboards' }, { name: 'Sign out', href: '#', @@ -113,7 +122,7 @@ function getMoreMobileNav() { export type Item = { name: string href: string - icon: React.ComponentType<{ className?: string }> + icon?: React.ComponentType<{ className?: string }> } function SidebarItem(props: { item: Item; currentPage: string }) { @@ -130,15 +139,17 @@ function SidebarItem(props: { item: Item; currentPage: string }) { )} aria-current={item.href == currentPage ? 'page' : undefined} > -