diff --git a/packages/app/components/profile/multiFactorAuth/MfaEnable.tsx b/packages/app/components/profile/multiFactorAuth/MfaEnable.tsx index f17c188..5a5cdbd 100644 --- a/packages/app/components/profile/multiFactorAuth/MfaEnable.tsx +++ b/packages/app/components/profile/multiFactorAuth/MfaEnable.tsx @@ -12,7 +12,7 @@ import { defineMessages } from 'react-intl'; import Context from '../Context'; import Instructions from './instructions'; import KeyForm from './keyForm'; -import Confirmation from './confirmation'; +import Confirmation from './Confirmation'; const STEPS_TOTAL = 3; diff --git a/packages/app/services/errorsDict/errorsDict.tsx b/packages/app/services/errorsDict/errorsDict.tsx index 7f89034..7095cf5 100644 --- a/packages/app/services/errorsDict/errorsDict.tsx +++ b/packages/app/services/errorsDict/errorsDict.tsx @@ -32,7 +32,9 @@ const ResendKey: ComponentType<{ url: string }> = ({ url }) => ( const errorsMap: Record) => ReactElement> = { 'error.login_required': () => , - 'error.login_not_exist': () => , + 'error.login_not_exist': () => ( + + ), 'error.password_required': () => , 'error.password_incorrect': (props) => ( @@ -47,12 +49,16 @@ const errorsMap: Record) => ReactElement> = 'error.username_invalid': () => , 'error.username_too_short': () => , 'error.username_too_long': () => , - 'error.username_not_available': () => , + 'error.username_not_available': () => ( + + ), 'error.email_required': () => , 'error.email_too_long': () => , 'error.email_invalid': () => , - 'error.email_is_tempmail': () => , + 'error.email_is_tempmail': () => ( + + ), 'error.email_not_available': (props) => ( // props are handled in validationErrorsHandler in components/auth/actions <> @@ -63,12 +69,22 @@ const errorsMap: Record) => ReactElement> = 'error.totp_required': () => , 'error.totp_incorrect': () => , - 'error.otp_already_enabled': () => , + 'error.otp_already_enabled': () => ( + + ), - 'error.rePassword_required': () => , - 'error.password_too_short': () => , - 'error.rePassword_does_not_match': () => , - 'error.rulesAgreement_required': () => , + 'error.rePassword_required': () => ( + + ), + 'error.password_too_short': () => ( + + ), + 'error.rePassword_does_not_match': () => ( + + ), + 'error.rulesAgreement_required': () => ( + + ), 'error.key_required': () => , 'error.key_not_exists': (props) => ( <> @@ -78,10 +94,16 @@ const errorsMap: Record) => ReactElement> = ), 'error.key_expire': (props) => errorsMap['error.key_not_exists'](props), - 'error.newPassword_required': () => , - 'error.newRePassword_required': () => , + 'error.newPassword_required': () => ( + + ), + 'error.newRePassword_required': () => ( + + ), - 'error.account_not_activated': () => , + 'error.account_not_activated': () => ( + + ), 'error.account_banned': () => , 'error.recently_sent_message': (props) => ( @@ -96,7 +118,9 @@ const errorsMap: Record) => ReactElement> = ), 'error.email_not_found': () => , - 'error.account_already_activated': () => , + 'error.account_already_activated': () => ( + + ), 'error.captcha_required': () => , 'error.captcha_invalid': (props) => errorsMap['error.captcha_required'](props),