From 33c0471c293f42a0bc44582c0337aa8d8d55f4f8 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 13 May 2022 16:47:50 -0700 Subject: [PATCH] Clean up some markup around the top of the page (#189) * Remove unnecessary wrapper div around sidebar * Remove extra column used for alignment on homepage * Remove extra wrapper div around whole page --- web/components/nav/nav-bar.tsx | 2 +- web/components/nav/sidebar.tsx | 5 +++-- web/components/page.tsx | 8 +++----- web/pages/home.tsx | 35 ++++++++++++++-------------------- 4 files changed, 21 insertions(+), 29 deletions(-) diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx index f92f6630..cab369fb 100644 --- a/web/components/nav/nav-bar.tsx +++ b/web/components/nav/nav-bar.tsx @@ -137,7 +137,7 @@ export function MobileSidebar(props: {
- +
diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index 80376b6c..f08403df 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -110,7 +110,8 @@ function MoreButton() { ) } -export default function Sidebar() { +export default function Sidebar(props: { className?: string }) { + const { className } = props const router = useRouter() const currentPage = router.pathname @@ -124,7 +125,7 @@ export default function Sidebar() { user === null ? signedOutMobileNavigation : mobileNavigation return ( -