mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
user settings, points slider
This commit is contained in:
@ -8,9 +8,9 @@ export const useSignUp = () => {
|
||||
|
||||
return useMutation({
|
||||
mutationKey: ["signUp"],
|
||||
mutationFn: async ({email, password}: { email: string, password: string }) => {
|
||||
mutationFn: async ({email, password, firstName, lastName}: { email: string, password: string, firstName: string, lastName: string }) => {
|
||||
const res = await auth().createUserWithEmailAndPassword(email, password);
|
||||
await updateUserData({newUserData: {userType: ProfileType.PARENT}, customUser: res.user});
|
||||
await updateUserData({newUserData: {userType: ProfileType.PARENT, firstName: firstName, lastName: lastName}, customUser: res.user});
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user