diff options
author | Ivan Silvestre <ivanbsilvestre@gmail.com> | 2023-05-30 13:54:23 +0100 |
---|---|---|
committer | Ivan Silvestre <ivanbsilvestre@gmail.com> | 2023-05-30 13:54:23 +0100 |
commit | caab6309dfb7592f50e51c6aae8d2266c19d8098 (patch) | |
tree | b252519fb2e61cf09d786512cd27849a9890936e /src | |
parent | e58fe2e20479adc891860b1f47eaea667b9a1f62 (diff) | |
download | voidsky-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')
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 3 | ||||
-rw-r--r-- | 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 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', diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 68ce370ed..8dd0bc63d 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -38,7 +38,7 @@ const ShellInner = observer(() => { </View> {isDesktop && ( <> - <DesktopLeftNav /> + {store.session.hasSession && <DesktopLeftNav />} <DesktopRightNav /> </> )} |