changes to calendar and UI

This commit is contained in:
ivic00
2024-10-05 23:41:44 +02:00
parent dd9f398fda
commit fe6e0365a4
24 changed files with 2045 additions and 2070 deletions

View File

@ -3,8 +3,10 @@ import React, { useState } from "react";
import { MaterialIcons } from "@expo/vector-icons";
import { StyleSheet } from "react-native";
const CalendarViewSwitch = () => {
const [show, setShow] = useState<boolean>(false);
interface ICalendarViewProps {
viewSwitch: (value: boolean) => void;
}
const CalendarViewSwitch = (calendarViewProps: ICalendarViewProps) => {
const [calView, setCalView] = useState<boolean>(false);
return (
@ -29,7 +31,12 @@ const CalendarViewSwitch = () => {
}}
centerV
>
<TouchableOpacity onPress={() => setCalView(true)}>
<TouchableOpacity
onPress={() => {
setCalView(true);
calendarViewProps.viewSwitch(true);
}}
>
<View
centerV
centerH
@ -43,7 +50,12 @@ const CalendarViewSwitch = () => {
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => setCalView(false)}>
<TouchableOpacity
onPress={() => {
setCalView(false);
calendarViewProps.viewSwitch(false);
}}
>
<View
centerV
centerH