Backup before moving to local state instead of hooks.
This commit is contained in:
@@ -76,16 +76,6 @@ export default function Auth() {
|
||||
});
|
||||
}, []);
|
||||
|
||||
const signOut = async () => {
|
||||
try {
|
||||
setAuthState({ status: "loading" });
|
||||
await firebase.auth().signOut();
|
||||
setAuthState({ status: "out" });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
};
|
||||
|
||||
let content;
|
||||
if (authState.status === "loading") {
|
||||
content = <Spin />;
|
||||
|
||||
Reference in New Issue
Block a user