There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: wrong text in change password page (#4244)
Qif789e366f272
diff --git a/packages/component/src/components/auth-components/change-password-page.tsx b/packages/component/src/components/auth-components/change-password-page.tsxindex 4b0b62a554..01680417d8 100644--- a/packages/component/src/components/auth-components/change-password-page.tsx+++ b/packages/component/src/components/auth-components/change-password-page.tsx@@ -32,12 +32,12 @@ export const ChangePasswordPage: FC<{<AuthPageContainertitle={hasSetUp- ? t['com.affine.auth.set.password.page.success']()+ ? t['com.affine.auth.reset.password.page.success'](): t['com.affine.auth.reset.password.page.title']()}subtitle={hasSetUp ? (- t['com.affine.auth.sign.up.success.subtitle']()+ t['com.affine.auth.sent.reset.password.success.message']()) : (<>{t['com.affine.auth.page.sent.email.subtitle']()}diff --git a/packages/component/src/components/auth-components/password-input/index.tsx b/packages/component/src/components/auth-components/password-input/index.tsxindex 048e0f497c..5d2f612061 100644--- a/packages/component/src/components/auth-components/password-input/index.tsx+++ b/packages/component/src/components/auth-components/password-input/index.tsx@@ -53,6 +53,9 @@ export const PasswordInput: FC<}, []);useEffect(() => {+ if (!password || !confirmPassword) {+ return;+ }if (password === confirmPassword) {setConfirmStatus('success');} else {diff --git a/packages/component/src/components/auth-components/set-password-page.tsx b/packages/component/src/components/auth-components/set-password-page.tsxindex 4caf97c8cb..cf126f8837 100644--- a/packages/component/src/components/auth-components/set-password-page.tsx+++ b/packages/component/src/components/auth-components/set-password-page.tsx@@ -33,12 +33,12 @@ export const SetPasswordPage: FC<{<AuthPageContainertitle={hasSetUp- ? t['com.affine.auth.sign.up.success.title']()- : t['com.affine.auth.page.sent.email.title']()+ ? t['com.affine.auth.set.password.page.success']()+ : t['com.affine.auth.set.password.page.title']()}subtitle={hasSetUp ? (- t['com.affine.auth.sign.up.success.subtitle']()+ t['com.affine.auth.sent.set.password.success.message']()) : (<>{t['com.affine.auth.page.sent.email.subtitle']()}diff --git a/packages/i18n/src/resources/en.json b/packages/i18n/src/resources/en.jsonindex 1748eb08b6..4986c4849b 100644--- a/packages/i18n/src/resources/en.json+++ b/packages/i18n/src/resources/en.json@@ -92,11 +92,15 @@"com.affine.auth.sent.change.email.hint": "Verification link has been sent.","com.affine.auth.sent.change.password.hint": "Reset password link has been sent.","com.affine.auth.sent.set.password.hint": "Set password link has been sent.",+"com.affine.auth.set.email.save": "Save Email","com.affine.auth.set.password": "Set password","com.affine.auth.set.password.message": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ","com.affine.auth.change.email.message": "Your current email is {{email}}. We’ll send a temporary verification link to this email.","com.affine.auth.set.password.page.success": "Password set successful",+ "com.affine.auth.reset.password.page.success": "Password reset successful",+ "com.affine.auth.sent.set.password.success.message": "Your password has saved! You can sign in AFFiNE Cloud with email and password!",+ "com.affine.auth.sent.reset.password.success.message": "Your password has upgraded! You can sign in AFFiNE Cloud with new password!","com.affine.auth.set.password.page.title": "Set your AFFiNE Cloud password","com.affine.auth.set.password.placeholder": "Set a password at least 8 letters long","com.affine.auth.set.password.placeholder.confirm": "Confirm password",