From e288fb6496f791663540edfdd0c6318acdcde473 Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Mon, 9 Dec 2024 13:16:55 -0300 Subject: [PATCH] chore: updated accessibility experience and layout --- app/containers/TwoFactor/index.tsx | 46 ++++++++++++------------------ app/containers/TwoFactor/styles.ts | 11 ++++++- app/i18n/locales/ar.json | 1 - app/i18n/locales/bn-IN.json | 1 - app/i18n/locales/cs.json | 1 - app/i18n/locales/de.json | 1 - app/i18n/locales/en.json | 1 - app/i18n/locales/es.json | 1 - app/i18n/locales/fi.json | 1 - app/i18n/locales/fr.json | 1 - app/i18n/locales/hi-IN.json | 1 - app/i18n/locales/hu.json | 1 - app/i18n/locales/it.json | 1 - app/i18n/locales/ja.json | 1 - app/i18n/locales/nl.json | 1 - app/i18n/locales/pt-BR.json | 1 - app/i18n/locales/pt-PT.json | 1 - app/i18n/locales/ru.json | 1 - app/i18n/locales/sl-SI.json | 1 - app/i18n/locales/sv.json | 1 - app/i18n/locales/ta-IN.json | 1 - app/i18n/locales/te-IN.json | 1 - app/i18n/locales/tr.json | 1 - app/i18n/locales/zh-CN.json | 1 - app/i18n/locales/zh-TW.json | 1 - 25 files changed, 29 insertions(+), 51 deletions(-) diff --git a/app/containers/TwoFactor/index.tsx b/app/containers/TwoFactor/index.tsx index 3fc57e038b..785df41849 100644 --- a/app/containers/TwoFactor/index.tsx +++ b/app/containers/TwoFactor/index.tsx @@ -126,12 +126,7 @@ const TwoFactor = React.memo(() => { const color = colors.fontTitlesLabels; return ( - } + customBackdrop={} avoidKeyboard useNativeDriver isVisible={visible} @@ -143,27 +138,24 @@ const TwoFactor = React.memo(() => { isMasterDetail && [sharedStyles.modalFormSheet, styles.tablet], { backgroundColor: colors.surfaceTint } ]}> - - {I18n.t(method?.title || 'Two_Factor_Authentication')} - {method?.text ? {I18n.t(method.text)} : null} - InteractionManager.runAfterInteractions(() => e?.getNativeRef()?.focus())} - returnKeyType='send' - autoCapitalize='none' - onChangeText={setCode} - onSubmitEditing={onSubmit} - keyboardType={method?.keyboardType} - secureTextEntry={method?.secureTextEntry} - error={data.invalid ? { error: 'totp-invalid', reason: I18n.t('Code_or_password_invalid') } : undefined} - testID='two-factor-input' - containerStyle={{ marginBottom: 36 }} - /> - + {I18n.t(method?.title || 'Two_Factor_Authentication')} + {method?.text ? {I18n.t(method.text)} : null} + InteractionManager.runAfterInteractions(() => e?.getNativeRef()?.focus())} + onChangeText={setCode} + onSubmitEditing={onSubmit} + keyboardType={method?.keyboardType} + secureTextEntry={method?.secureTextEntry} + error={data.invalid ? { error: 'totp-invalid', reason: I18n.t('Code_or_password_invalid') } : undefined} + containerStyle={styles.containerInput} + /> {isEmail ? (