mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
Calendar, syncing rework
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import {useMutation} from "react-query";
|
||||
import auth from "@react-native-firebase/auth";
|
||||
import {useRouter} from "expo-router";
|
||||
|
||||
export const useSignOut = () => {
|
||||
const {replace} = useRouter();
|
||||
return useMutation({
|
||||
mutationKey: ["signOut"],
|
||||
mutationFn: async () => {
|
||||
await auth().signOut()
|
||||
replace("/(unauth)")
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user