From caab6309dfb7592f50e51c6aae8d2266c19d8098 Mon Sep 17 00:00:00 2001 From: Ivan Silvestre Date: Tue, 30 May 2023 13:54:23 +0100 Subject: [PATCH 1/2] Desktop: hide the left panel and the invite codes from the main page if you are not logged in --- src/view/shell/desktop/RightNav.tsx | 3 ++- src/view/shell/index.web.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 4fae64fe..462627c4 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -59,7 +59,7 @@ export const DesktopRightNav = observer(function DesktopRightNav() { /> - + {store.session.hasSession && } { {isDesktop && ( <> - + {store.session.hasSession && } )} From e77c6169706640ea95129d8ee26bb022af419374 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 30 May 2023 13:53:33 -0500 Subject: [PATCH 2/2] Hide both the left and right nav on desktop when logged out --- src/view/shell/desktop/RightNav.tsx | 2 +- src/view/shell/index.web.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 462627c4..02165d3c 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -59,7 +59,7 @@ export const DesktopRightNav = observer(function DesktopRightNav() { /> - {store.session.hasSession && } + { - {isDesktop && ( + {isDesktop && store.session.hasSession && ( <> - {store.session.hasSession && } + )}