Desktop: hide the left panel and the invite codes from the main page if you are not logged in
parent
e58fe2e204
commit
caab6309df
|
@ -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',
|
||||||
|
|
|
@ -38,7 +38,7 @@ const ShellInner = observer(() => {
|
||||||
</View>
|
</View>
|
||||||
{isDesktop && (
|
{isDesktop && (
|
||||||
<>
|
<>
|
||||||
<DesktopLeftNav />
|
{store.session.hasSession && <DesktopLeftNav />}
|
||||||
<DesktopRightNav />
|
<DesktopRightNav />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue