mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(app): do not crash when the browser translates the page (#2624)
This commit is contained in:
1 parent
044a2c101d
commit
d729f641ff
83 files changed
+3774
-1080
No files matched your search
@@ -165,9 +165,11 @@ export const TermsAcceptanceModal = observer(() => {
|
||||
ref={primaryRef}
|
||||
data-flx="auth.terms-acceptance-modal.button.accept"
|
||||
>
|
||||
{kind === 'terms' && i18n._(I_AGREE_TO_THE_UPDATED_TERMS_DESCRIPTOR)}
|
||||
{kind === 'privacy' && i18n._(I_AGREE_TO_THE_UPDATED_PRIVACY_POLICY_DESCRIPTOR)}
|
||||
{kind === 'both' && i18n._(I_AGREE_TO_THE_UPDATED_POLICIES_DESCRIPTOR)}
|
||||
{kind === 'terms'
|
||||
? i18n._(I_AGREE_TO_THE_UPDATED_TERMS_DESCRIPTOR)
|
||||
: kind === 'privacy'
|
||||
? i18n._(I_AGREE_TO_THE_UPDATED_PRIVACY_POLICY_DESCRIPTOR)
|
||||
: i18n._(I_AGREE_TO_THE_UPDATED_POLICIES_DESCRIPTOR)}
|
||||
</Button>
|
||||
</Modal.Footer>
|
||||
</Modal.Root>
|
||||
|
||||
@@ -20,7 +20,7 @@ export function AuthBottomLink({variant, to}: AuthBottomLinkProps) {
|
||||
return (
|
||||
<div className={styles.bottomLink} data-flx="auth.flow.auth-bottom-link.bottom-link">
|
||||
<span className={styles.bottomLinkText} data-flx="auth.flow.auth-bottom-link.bottom-link-text">
|
||||
{variant === 'login' ? i18n._(ALREADY_HAVE_ACCOUNT_DESCRIPTOR) : i18n._(NEED_ACCOUNT_DESCRIPTOR)}{' '}
|
||||
{`${variant === 'login' ? i18n._(ALREADY_HAVE_ACCOUNT_DESCRIPTOR) : i18n._(NEED_ACCOUNT_DESCRIPTOR)} `}
|
||||
</span>
|
||||
<AuthRouterLink
|
||||
to={to}
|
||||
|
||||
@@ -142,7 +142,9 @@ const IpAuthorizationScreen = ({challenge, onAuthorized, onBack}: IpAuthorizatio
|
||||
data-flx="auth.flow.ip-authorization-screen.button.resend"
|
||||
>
|
||||
{resendUsed ? <Trans>Resent</Trans> : <Trans>Resend email</Trans>}
|
||||
{resendIn > 0 ? ` (${resendIn}s)` : ''}
|
||||
<flx-i18n data-flx="auth.flow.ip-authorization-screen.flx-i18n">
|
||||
{resendIn > 0 ? ` (${resendIn}s)` : ''}
|
||||
</flx-i18n>
|
||||
</Button>
|
||||
)}
|
||||
{onBack ? (
|
||||
|
||||
Reference in new issue
Block a user