mirror of
https://github.com/urosran/cally.git
synced 2025-11-27 17:04:55 +00:00
Apple calendar sync, timezone, first day of week additions
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user