fix: incorrect toast after signed in (#4268)

This commit is contained in:
Qi
2023-09-07 15:45:31 +00:00
committed by GitHub
parent 4dbc5412a5
commit fcf041024f
2 changed files with 4 additions and 4 deletions
@@ -44,9 +44,8 @@ export const SignInWithPassword: FC<AuthPanelProps> = ({
await update(); await update();
onSignedIn?.(); onSignedIn?.();
pushNotification({ pushNotification({
title: `${email}${t['com.affine.auth.has.signed']()}`, title: t['com.affine.auth.has.signed'](),
message: '', message: t['com.affine.auth.has.signed.message'](),
key: Date.now().toString(),
type: 'success', type: 'success',
}); });
}, [email, password, pushNotification, onSignedIn, t, update]); }, [email, password, pushNotification, onSignedIn, t, update]);
+2 -1
View File
@@ -73,7 +73,8 @@
"com.affine.auth.desktop.signing.in": "Signing in...", "com.affine.auth.desktop.signing.in": "Signing in...",
"com.affine.auth.desktop.signing.in.message": "Signing in with account <1></1>", "com.affine.auth.desktop.signing.in.message": "Signing in with account <1></1>",
"com.affine.auth.forget": "Forgot password", "com.affine.auth.forget": "Forgot password",
"com.affine.auth.has.signed": " has signed in!", "com.affine.auth.has.signed": "Signed in",
"com.affine.auth.has.signed.message": "You have been signed in, start to sync your data with AFFiNE Cloud!",
"com.affine.auth.later": "Later", "com.affine.auth.later": "Later",
"com.affine.auth.open.affine": "Open AFFiNE", "com.affine.auth.open.affine": "Open AFFiNE",
"com.affine.auth.open.affine.download-app": "Download App", "com.affine.auth.open.affine.download-app": "Download App",