fixed chores page tablet

This commit is contained in:
ivic00
2024-11-10 14:07:27 +01:00
parent 62ba53f116
commit 1d3daa49ec
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,8 @@
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import { View, Text } from 'react-native'; import { View, Text } from 'react-native';
import * as ScreenOrientation from 'expo-screen-orientation'; import * as ScreenOrientation from 'expo-screen-orientation';
import TabletContainer from '../tablet_components/TabletContainer';
import ToDosPage from '../../todos/ToDosPage';
const TabletChoresPage = () => { const TabletChoresPage = () => {
// Function to lock the screen orientation to landscape // Function to lock the screen orientation to landscape
@ -18,9 +20,9 @@ const TabletChoresPage = () => {
}, []); }, []);
return ( return (
<View> <TabletContainer>
<Text>TabletChoresPage</Text> <ToDosPage />
</View> </TabletContainer>
); );
}; };

View File

@ -31,6 +31,7 @@ const TabletContainer: React.FC<TabletContainerProps> = ({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
backgroundColor: "white", backgroundColor: "white",
width: width,
flex: 1, flex: 1,
}, },
calendarContainer: { calendarContainer: {