Backup before moving to local state instead of hooks.

This commit is contained in:
Patrick Fic
2019-12-06 21:10:05 -08:00
parent 1b759924a4
commit 8a72294c91
9 changed files with 67 additions and 46 deletions

View File

@@ -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 />;