From 1111108efee528d94a0ec5a6cb714aa09f6237db Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 14 Dec 2023 17:46:27 -0600 Subject: Some brand, some pwi (#2212) * Add logo to left nav in logged out * Protect last routes * Hide links in left nav, hide nav * Replace bottom bar for pwi * Remove same links from drawer * Hide reply prompt * Allow search --- src/view/shell/desktop/LeftNav.tsx | 66 ++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 31 deletions(-) (limited to 'src/view/shell/desktop/LeftNav.tsx') diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 8078df802..5d1c2a20f 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -266,6 +266,10 @@ export function DesktopLeftNav() { const {isDesktop, isTablet} = useWebMediaQueries() const numUnread = useUnreadNotifications() + if (!hasSession && !isDesktop) { + return null + } + return ( ) : null} - + {hasSession && ( + <> + - } - iconFilled={ - - } - label={_(msg`Home`)} - /> - } + iconFilled={ + + } + label={_(msg`Home`)} /> - } - iconFilled={ - + } + iconFilled={ + + } + label={_(msg`Search`)} /> - } - label={_(msg`Search`)} - /> - {hasSession && ( - <>