Apple calendar sync, timezone, first day of week additions

This commit is contained in:
Milan Paunovic
2024-10-19 22:56:55 +02:00
parent 00b6225a1c
commit 3653400a92
25 changed files with 1154 additions and 689 deletions

View File

@ -1,11 +1,11 @@
import firestore from "@react-native-firebase/firestore";
import { FirebaseAuthTypes } from "@react-native-firebase/auth";
import { useMutation, useQueryClient } from "react-query";
import { useAuthContext } from "@/contexts/AuthContext";
import { UserProfile } from "@/hooks/firebase/types/profileTypes";
import {FirebaseAuthTypes} from "@react-native-firebase/auth";
import {useMutation, useQueryClient} from "react-query";
import {useAuthContext} from "@/contexts/AuthContext";
import {UserProfile} from "@/hooks/firebase/types/profileTypes";
export const useUpdateUserData = () => {
const { user: currentUser, refreshProfileData } = useAuthContext();
const {user: currentUser, refreshProfileData} = useAuthContext();
const queryClient = useQueryClient();
return useMutation({
@ -17,7 +17,7 @@ export const useUpdateUserData = () => {
newUserData: Partial<UserProfile>;
customUser?: FirebaseAuthTypes.User;
}) => {
console.log("Mutation function called with data:", { newUserData, customUser });
console.log("Mutation function called with data:", {newUserData, customUser});
const user = currentUser ?? customUser;