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>
</View> </View>
<InviteCodes /> {store.session.hasSession && <InviteCodes />}
<View> <View>
<TouchableOpacity <TouchableOpacity
style={[styles.darkModeToggle]} style={[styles.darkModeToggle]}
@ -158,6 +158,7 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
gap: 8, gap: 8,
marginHorizontal: 12, marginHorizontal: 12,
marginTop: 8,
}, },
darkModeToggleIcon: { darkModeToggleIcon: {
flexDirection: 'row', flexDirection: 'row',

View File

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