Hide both the left and right nav on desktop when logged out

zio/stable
Paul Frazee 2023-05-30 13:53:33 -05:00
parent 7a7b99d033
commit e77c616970
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ export const DesktopRightNav = observer(function DesktopRightNav() {
/>
</View>
</View>
{store.session.hasSession && <InviteCodes />}
<InviteCodes />
<View>
<TouchableOpacity
style={[styles.darkModeToggle]}

View File

@ -36,9 +36,9 @@ const ShellInner = observer(() => {
<FlatNavigator />
</ErrorBoundary>
</View>
{isDesktop && (
{isDesktop && store.session.hasSession && (
<>
{store.session.hasSession && <DesktopLeftNav />}
<DesktopLeftNav />
<DesktopRightNav />
</>
)}