Skip to content

Commit

Permalink
fix view side with navigation (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSghais authored Aug 6, 2024
1 parent 375f191 commit 6b92471
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions apps/mobile/src/app/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useEffect, useState } from 'react';
import { Dimensions, Platform, StyleSheet, View } from 'react-native';

import { Icon } from '../components';
import { useStyles, useTheme } from '../hooks';
import { CreateAccount } from '../screens/Auth/CreateAccount';
Expand Down Expand Up @@ -217,14 +216,10 @@ const RootNavigator: React.FC = () => {
export const Router: React.FC = () => {
const isWeb = Platform.OS === 'web';
const windowWidth = Dimensions.get('window').width;
const shouldShowSidebar = isWeb && windowWidth >= 768;
const styles = useStyles(stylesheet);

return (
<NavigationContainer
// linking={linking}
>
<Sidebar></Sidebar>
<RootNavigator />
</NavigationContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const RootScreenContainer: React.FC<ViewProps> = ({ style, children, ...p
return (
<View style={[styles.container, style]} {...props}>
<View style={styles.content}>
{/* {shouldShowSidebar && <Sidebar></Sidebar>} */}
{shouldShowSidebar && <Sidebar></Sidebar>}
{children}</View>
</View>
);
Expand Down

0 comments on commit 6b92471

Please sign in to comment.