refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 19:13:49 +08:00
parent 678b8515ca
commit 9f1b115c73
55 changed files with 421 additions and 338 deletions
+2 -2
View File
@@ -66,13 +66,13 @@ const GoogleLoginInner: FC<Props> = ({ type = "login", loaded, loadError }) => {
}, [error]);
return (
<StyledSocialButton disabled={!loaded || isLoading} onClick={null}>
<StyledSocialButton disabled={!loaded || isLoading}>
<div className="invisible">
<GoogleLogin
onSuccess={(res) => {
login({
magic_token,
id_token: res.credential,
id_token: res.credential || "",
type: "google"
});
}}