about summary refs log tree commit diff
path: root/src/view/shell/desktop/RightNav.tsx
diff options
context:
space:
mode:
authorIvan Silvestre <ivanbsilvestre@gmail.com>2023-05-30 13:54:23 +0100
committerIvan Silvestre <ivanbsilvestre@gmail.com>2023-05-30 13:54:23 +0100
commitcaab6309dfb7592f50e51c6aae8d2266c19d8098 (patch)
treeb252519fb2e61cf09d786512cd27849a9890936e /src/view/shell/desktop/RightNav.tsx
parente58fe2e20479adc891860b1f47eaea667b9a1f62 (diff)
downloadvoidsky-caab6309dfb7592f50e51c6aae8d2266c19d8098.tar.zst
Desktop: hide the left panel and the invite codes from the main page if you are not logged in
Diffstat (limited to 'src/view/shell/desktop/RightNav.tsx')
-rw-r--r--src/view/shell/desktop/RightNav.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx
index 4fae64fef..462627c41 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>
-      <InviteCodes />
+      {store.session.hasSession && <InviteCodes />}
       <View>
         <TouchableOpacity
           style={[styles.darkModeToggle]}
@@ -158,6 +158,7 @@ const styles = StyleSheet.create({
     alignItems: 'center',
     gap: 8,
     marginHorizontal: 12,
+    marginTop: 8,
   },
   darkModeToggleIcon: {
     flexDirection: 'row',