diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-30 13:53:33 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-05-30 13:53:33 -0500 |
commit | e77c6169706640ea95129d8ee26bb022af419374 (patch) | |
tree | d5b99ba67b5cb2252e80acf41a16338ec8ad73d1 /src | |
parent | 7a7b99d033d532a2f119f5f823aaff04e940fea1 (diff) | |
download | voidsky-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.tsx | 2 | ||||
-rw-r--r-- | 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 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 /> </> )} |