diff --git a/packages/components/src/App.web.tsx b/packages/components/src/App.web.tsx index 7470019..ef0f292 100644 --- a/packages/components/src/App.web.tsx +++ b/packages/components/src/App.web.tsx @@ -5,15 +5,18 @@ import { Provider } from 'react-redux' import { store } from './store' import Reviews from './features/reviews/Reviews' +import { useMediaQuery } from 'react-responsive' type Props = { children: React.ReactNode } const App = ({ children }: Props) => { + const isMobile = useMediaQuery({ maxWidth: 900 }) + return ( - + {children} @@ -26,6 +29,7 @@ const styles = StyleSheet.create({ main: { backgroundColor: '#f1f1f1', flexDirection: 'row', + height: '100vh', }, pageContainer: { flex: 2, @@ -35,4 +39,10 @@ const styles = StyleSheet.create({ }, }) +const mobileStyles = StyleSheet.create({ + main: { + flexDirection: 'column', + }, +}) + export default App