about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-05-30 13:53:33 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-05-30 13:53:33 -0500
commite77c6169706640ea95129d8ee26bb022af419374 (patch)
treed5b99ba67b5cb2252e80acf41a16338ec8ad73d1 /src
parent7a7b99d033d532a2f119f5f823aaff04e940fea1 (diff)
downloadvoidsky-e77c6169706640ea95129d8ee26bb022af419374.tar.zst
Hide both the left and right nav on desktop when logged out
Diffstat (limited to 'src')
-rw-r--r--src/view/shell/desktop/RightNav.tsx2
-rw-r--r--src/view/shell/index.web.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx
index 462627c41..02165d3c6 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() {
           />
         </View>
       </View>
-      {store.session.hasSession && <InviteCodes />}
+      <InviteCodes />
       <View>
         <TouchableOpacity
           style={[styles.darkModeToggle]}
diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx
index 8dd0bc63d..5e3875268 100644
--- a/src/view/shell/index.web.tsx
+++ b/src/view/shell/index.web.tsx
@@ -36,9 +36,9 @@ const ShellInner = observer(() => {
           <FlatNavigator />
         </ErrorBoundary>
       </View>
-      {isDesktop && (
+      {isDesktop && store.session.hasSession && (
         <>
-          {store.session.hasSession && <DesktopLeftNav />}
+          <DesktopLeftNav />
           <DesktopRightNav />
         </>
       )}