fixed tablet calendar

This commit is contained in:
ivic00
2024-12-28 15:53:36 +01:00
parent f1869f02f2
commit ab7a844bb5
4 changed files with 8 additions and 4 deletions

View File

@ -10,6 +10,8 @@ import {useCalendarControls} from "@/components/pages/calendar/useCalendarContro
import {EventCell} from "@/components/pages/calendar/EventCell";
import {isToday} from "date-fns";
import { View } from "react-native-ui-lib";
import { DeviceType } from "expo-device";
import * as Device from "expo-device"
interface EventCalendarProps {
calendarHeight: number;
@ -97,7 +99,7 @@ export const DetailedCalendar: React.FC<EventCalendarProps> = ({calendarHeight,
{...bodyProps}
renderEvent={renderEvent}
/>
<View marginB-0/>
{Device.deviceType === DeviceType.TABLET && <View style={{backgroundColor: 'white', height: '9%', width: '100%'}}/>}
</CalendarContainer>
);
};

View File

@ -652,7 +652,7 @@ export const MonthCalendar: React.FC<EventCalendarProps> = React.memo(
ampm
// renderCustomDateForMonth={renderCustomDateForMonth}
/>
{/*<View style={{backgroundColor: 'white', height: 50, width: '100%'}}/>*/}
{Device.deviceType === DeviceType.TABLET && <View style={{backgroundColor: 'white', height: '9%', width: '100%'}}/>}
</>
);

View File

@ -31,13 +31,13 @@ const UserChoresProgress = ({
style={{fontFamily: "Poppins_400Regular", fontSize: 14.71}}
color="#979797"
>
Return to To Do's
Return to To Dos
</Text>
</View>
</TouchableOpacity>
<View>
<Text style={{fontFamily: "Manrope_700Bold", fontSize: 20}}>
Your To Do's Progress Report
Your To Dos Progress Report
</Text>
</View>
<View row spread marginT-25 marginB-5>