mirror of
https://github.com/urosran/cally.git
synced 2026-10-23 08:17:54 +00:00
bug fixes and new screens
This commit is contained in:
@@ -5,6 +5,7 @@ import {Button, Picker, PickerModes, SegmentedControl, Text, View} from "react-n
|
||||
import {MaterialIcons} from "@expo/vector-icons";
|
||||
import {AddEventDialog} from "@/components/pages/calendar/AddEventDialog";
|
||||
import {useGetEvents} from "@/hooks/firebase/useGetEvents";
|
||||
import { useAuthContext } from "@/contexts/AuthContext";
|
||||
|
||||
const modeMap = new Map([
|
||||
[0, "day"],
|
||||
@@ -18,6 +19,7 @@ const months = [
|
||||
];
|
||||
|
||||
export default function Screen() {
|
||||
const { profileData } = useAuthContext();
|
||||
const [calendarHeight, setCalendarHeight] = useState(0);
|
||||
const [mode, setMode] = useState<"week" | "month" | "day">("week");
|
||||
const [selectedDate, setSelectedDate] = useState<Date>(new Date());
|
||||
@@ -52,7 +54,7 @@ export default function Screen() {
|
||||
return (
|
||||
<View style={{flex: 1, height: "100%", padding: 10}}>
|
||||
<View style={{height: 60, justifyContent: "space-evenly", alignItems: "flex-start"}}>
|
||||
<Text>Welcome Dalia</Text>
|
||||
<Text>Welcome {profileData?.firstName}</Text>
|
||||
<Text>Let's get your week started!</Text>
|
||||
</View>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user