fix: incorrect toast after signed in (#4268)

This commit is contained in:
Qi 2023-09-07 23:45:31 +08:00 committed by GitHub
parent 4dbc5412a5
commit fcf041024f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,8 @@ export const SignInWithPassword: FC<AuthPanelProps> = ({
await update();
onSignedIn?.();
pushNotification({
title: `${email}${t['com.affine.auth.has.signed']()}`,
message: '',
key: Date.now().toString(),
title: t['com.affine.auth.has.signed'](),
message: t['com.affine.auth.has.signed.message'](),
type: 'success',
});
}, [email, password, pushNotification, onSignedIn, t, update]);

View File

@ -73,7 +73,8 @@
"com.affine.auth.desktop.signing.in": "Signing in...",
"com.affine.auth.desktop.signing.in.message": "Signing in with account <1></1>",
"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.open.affine": "Open AFFiNE",
"com.affine.auth.open.affine.download-app": "Download App",