From 344ce69fee51a32e92781de78867a3d104f7d222 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 12 Jan 2022 02:18:14 -0500 Subject: [PATCH] Move About page out of navbar --- web/components/nav-bar.tsx | 22 ++++++++++++---------- web/components/profile-menu.tsx | 5 ++++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/web/components/nav-bar.tsx b/web/components/nav-bar.tsx index 210a1814..216a626a 100644 --- a/web/components/nav-bar.tsx +++ b/web/components/nav-bar.tsx @@ -35,16 +35,18 @@ export function NavBar(props: { {children} - - - + {!user && ( + + + + )} {!isLandingPage && ( diff --git a/web/components/profile-menu.tsx b/web/components/profile-menu.tsx index 2ceb18e6..4f20a1a5 100644 --- a/web/components/profile-menu.tsx +++ b/web/components/profile-menu.tsx @@ -59,7 +59,10 @@ function getNavigationOptions(user: User, options: { mobile: boolean }) { name: 'Discord', href: 'https://discord.gg/eHQBNBqXuh', }, - ...(mobile ? [{ name: 'About', href: '/about' }] : []), + { + name: 'About', + href: '/about', + }, { name: 'Sign out', href: '#',