From efcfa10323b9c5e7fc6f1c93b889b6218df17fdc Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 15 Jul 2022 01:08:41 -0500 Subject: [PATCH] Put back more menu so users can sign out --- web/components/nav/sidebar.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index 60c353fc..979586f9 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -54,7 +54,13 @@ function getNavigation() { function getMoreNavigation(user?: User | null) { if (IS_PRIVATE_MANIFOLD) { - return [{ name: 'Leaderboards', href: '/leaderboards' }] + return [ + { + name: 'Sign out', + href: '#', + onClick: withTracking(firebaseLogout, 'sign out'), + }, + ] } if (!user) { @@ -251,6 +257,12 @@ export default function Sidebar(props: { className?: string }) { {navigationOptions.map((item) => ( ))} + {user && ( + } + /> + )} {/* Spacer if there are any groups */} {memberItems.length > 0 && (