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