mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix: wrong text in change password page (#4244)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -32,12 +32,12 @@ export const ChangePasswordPage: FC<{
|
||||
<AuthPageContainer
|
||||
title={
|
||||
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']()}
|
||||
|
||||
@@ -53,6 +53,9 @@ export const PasswordInput: FC<
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!password || !confirmPassword) {
|
||||
return;
|
||||
}
|
||||
if (password === confirmPassword) {
|
||||
setConfirmStatus('success');
|
||||
} else {
|
||||
|
||||
@@ -33,12 +33,12 @@ export const SetPasswordPage: FC<{
|
||||
<AuthPageContainer
|
||||
title={
|
||||
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']()}
|
||||
|
||||
Reference in New Issue
Block a user