Hide both the left and right nav on desktop when logged out
This commit is contained in:
@@ -59,7 +59,7 @@ export const DesktopRightNav = observer(function DesktopRightNav() {
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
{store.session.hasSession && <InviteCodes />}
|
||||
<InviteCodes />
|
||||
<View>
|
||||
<TouchableOpacity
|
||||
style={[styles.darkModeToggle]}
|
||||
|
||||
@@ -36,9 +36,9 @@ const ShellInner = observer(() => {
|
||||
<FlatNavigator />
|
||||
</ErrorBoundary>
|
||||
</View>
|
||||
{isDesktop && (
|
||||
{isDesktop && store.session.hasSession && (
|
||||
<>
|
||||
{store.session.hasSession && <DesktopLeftNav />}
|
||||
<DesktopLeftNav />
|
||||
<DesktopRightNav />
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user