Desktop: hide the left panel and the invite codes from the main page if you are not logged in

zio/stable
Ivan Silvestre 2023-05-30 13:54:23 +01:00
parent e58fe2e204
commit caab6309df
2 changed files with 3 additions and 2 deletions

View File

@ -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',

View File

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