fix(core): missing i18n and button margin (#11568)

close AF-2486
This commit is contained in:
forehalo
2025-04-09 13:40:01 +00:00
parent 5808b3c8df
commit 4e56a8447b
3 changed files with 19 additions and 14 deletions

View File

@@ -117,19 +117,19 @@ export const VerifyEmailDialog = ({
disabled={true}
value={email}
/>
<Button
variant="primary"
size="extraLarge"
style={{ width: '100%' }}
disabled={hasSentEmail}
loading={loading}
onClick={onSendEmail}
>
{hasSentEmail
? t['com.affine.auth.sent']()
: t['com.affine.auth.send.verify.email.hint']()}
</Button>
</AuthContent>
<Button
variant="primary"
size="extraLarge"
style={{ width: '100%' }}
disabled={hasSentEmail}
loading={loading}
onClick={onSendEmail}
>
{hasSentEmail
? t['com.affine.auth.sent']()
: t['com.affine.auth.send.verify.email.hint']()}
</Button>
</Modal>
);
};

View File

@@ -1122,6 +1122,10 @@ export function useAFFiNEI18N(): {
["com.affine.auth.sign.auth.code.resend.hint"](options: {
readonly second: string;
}): string;
/**
* `Sent`
*/
["com.affine.auth.sent"](): string;
/**
* `The verification link failed to be sent, please try again later.`
*/
@@ -1135,7 +1139,7 @@ export function useAFFiNEI18N(): {
*/
["com.affine.auth.sent.change.password.hint"](): string;
/**
* `Your password has upgraded! You can sign in AFFiNE Cloud with new password!`
* `Your password has been updated! You can sign in AFFiNE Cloud with new password!`
*/
["com.affine.auth.sent.reset.password.success.message"](): string;
/**

View File

@@ -272,10 +272,11 @@
"com.affine.auth.sign.auth.code.continue": "Continue with code",
"com.affine.auth.sign.auth.code.resend": "Resend code",
"com.affine.auth.sign.auth.code.resend.hint": "Resend in {{second}}s",
"com.affine.auth.sent": "Sent",
"com.affine.auth.sent.change.email.fail": "The verification link failed to be sent, please try again later.",
"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.reset.password.success.message": "Your password has upgraded! You can sign in AFFiNE Cloud with new password!",
"com.affine.auth.sent.reset.password.success.message": "Your password has been updated! You can sign in AFFiNE Cloud with new password!",
"com.affine.auth.sent.set.password.hint": "Set password link has been sent.",
"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.verify.email.hint": "Verification link has been sent.",