mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 01:56:16 +00:00
additional hooks
This commit is contained in:
@ -9,8 +9,8 @@ export const useSignUp = () => {
|
||||
return useMutation({
|
||||
mutationKey: ["signUp"],
|
||||
mutationFn: async ({email, password}: { email: string, password: string }) => {
|
||||
await auth().createUserWithEmailAndPassword(email, password)
|
||||
await updateUserData({userType: ProfileType.PARENT, email, password})
|
||||
await auth().createUserWithEmailAndPassword(email, password);
|
||||
await updateUserData({userType: ProfileType.PARENT, email, password});
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user