From 94c1d5c84f38ed3823422019540aab8da716f077 Mon Sep 17 00:00:00 2001 From: dougfabris Date: Tue, 20 Dec 2022 21:03:01 -0300 Subject: [PATCH] chore: twoFactor modal icon missalignment --- apps/meteor/client/components/GenericModal.tsx | 2 +- .../client/components/TwoFactorModal/TwoFactorEmailModal.tsx | 4 ++-- .../components/TwoFactorModal/TwoFactorPasswordModal.tsx | 4 ++-- .../client/components/TwoFactorModal/TwoFactorTotpModal.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/meteor/client/components/GenericModal.tsx b/apps/meteor/client/components/GenericModal.tsx index 1886bdb6eefa..b03f83f95a54 100644 --- a/apps/meteor/client/components/GenericModal.tsx +++ b/apps/meteor/client/components/GenericModal.tsx @@ -50,7 +50,7 @@ const renderIcon = (icon: GenericModalProps['icon'], variant: VariantType): Reac } if (typeof icon === 'string') { - return ; + return ; } return icon; diff --git a/apps/meteor/client/components/TwoFactorModal/TwoFactorEmailModal.tsx b/apps/meteor/client/components/TwoFactorModal/TwoFactorEmailModal.tsx index 88f8bfdef78a..afc162f52e00 100644 --- a/apps/meteor/client/components/TwoFactorModal/TwoFactorEmailModal.tsx +++ b/apps/meteor/client/components/TwoFactorModal/TwoFactorEmailModal.tsx @@ -1,4 +1,4 @@ -import { Box, TextInput, Icon } from '@rocket.chat/fuselage'; +import { Box, TextInput } from '@rocket.chat/fuselage'; import { useAutoFocus } from '@rocket.chat/fuselage-hooks'; import { useToastMessageDispatch, useEndpoint, useTranslation } from '@rocket.chat/ui-contexts'; import type { ReactElement, ChangeEvent } from 'react'; @@ -50,7 +50,7 @@ const TwoFactorEmailModal = ({ onConfirm, onClose, emailOrUsername }: TwoFactorE title={t('Two-factor_authentication_email')} onClose={onClose} variant='warning' - icon={} + icon='info' confirmDisabled={!code} > {t('Verify_your_email_for_the_code_we_sent')} diff --git a/apps/meteor/client/components/TwoFactorModal/TwoFactorPasswordModal.tsx b/apps/meteor/client/components/TwoFactorModal/TwoFactorPasswordModal.tsx index ba53fa8ce530..c31f87e6928a 100644 --- a/apps/meteor/client/components/TwoFactorModal/TwoFactorPasswordModal.tsx +++ b/apps/meteor/client/components/TwoFactorModal/TwoFactorPasswordModal.tsx @@ -1,4 +1,4 @@ -import { Box, PasswordInput, Icon } from '@rocket.chat/fuselage'; +import { Box, PasswordInput } from '@rocket.chat/fuselage'; import { useAutoFocus } from '@rocket.chat/fuselage-hooks'; import { useTranslation } from '@rocket.chat/ui-contexts'; import type { ReactElement, ChangeEvent, Ref } from 'react'; @@ -34,7 +34,7 @@ const TwoFactorPasswordModal = ({ onConfirm, onClose }: TwoFactorPasswordModalPr title={t('Please_enter_your_password')} onClose={onClose} variant='warning' - icon={} + icon='info' confirmDisabled={!code} > {t('For_your_security_you_must_enter_your_current_password_to_continue')} diff --git a/apps/meteor/client/components/TwoFactorModal/TwoFactorTotpModal.tsx b/apps/meteor/client/components/TwoFactorModal/TwoFactorTotpModal.tsx index 010d162a13e6..c229fd1b2932 100644 --- a/apps/meteor/client/components/TwoFactorModal/TwoFactorTotpModal.tsx +++ b/apps/meteor/client/components/TwoFactorModal/TwoFactorTotpModal.tsx @@ -1,4 +1,4 @@ -import { Box, TextInput, Icon } from '@rocket.chat/fuselage'; +import { Box, TextInput } from '@rocket.chat/fuselage'; import { useAutoFocus } from '@rocket.chat/fuselage-hooks'; import { useTranslation } from '@rocket.chat/ui-contexts'; import type { ReactElement, ChangeEvent } from 'react'; @@ -34,7 +34,7 @@ const TwoFactorTotpModal = ({ onConfirm, onClose }: TwoFactorTotpModalProps): Re title={t('Two Factor Authentication')} onClose={onClose} variant='warning' - icon={} + icon='info' confirmDisabled={!code} > {t('Open_your_authentication_app_and_enter_the_code')}