@@ -117,19 +117,19 @@ export const VerifyEmailDialog = ({
|
|||||||
disabled={true}
|
disabled={true}
|
||||||
value={email}
|
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>
|
</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>
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1122,6 +1122,10 @@ export function useAFFiNEI18N(): {
|
|||||||
["com.affine.auth.sign.auth.code.resend.hint"](options: {
|
["com.affine.auth.sign.auth.code.resend.hint"](options: {
|
||||||
readonly second: string;
|
readonly second: string;
|
||||||
}): string;
|
}): string;
|
||||||
|
/**
|
||||||
|
* `Sent`
|
||||||
|
*/
|
||||||
|
["com.affine.auth.sent"](): string;
|
||||||
/**
|
/**
|
||||||
* `The verification link failed to be sent, please try again later.`
|
* `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;
|
["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;
|
["com.affine.auth.sent.reset.password.success.message"](): string;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -272,10 +272,11 @@
|
|||||||
"com.affine.auth.sign.auth.code.continue": "Continue with code",
|
"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": "Resend code",
|
||||||
"com.affine.auth.sign.auth.code.resend.hint": "Resend in {{second}}s",
|
"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.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.email.hint": "Verification link has been sent.",
|
||||||
"com.affine.auth.sent.change.password.hint": "Reset password 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.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.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.",
|
"com.affine.auth.sent.verify.email.hint": "Verification link has been sent.",
|
||||||
|
|||||||
Reference in New Issue
Block a user