Skip to content

Commit

Permalink
chore: twoFactor modal icon missalignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Dec 21, 2022
1 parent af9373f commit 94c1d5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/client/components/GenericModal.tsx
Expand Up @@ -50,7 +50,7 @@ const renderIcon = (icon: GenericModalProps['icon'], variant: VariantType): Reac
}

if (typeof icon === 'string') {
return <Modal.Icon color={variant} name={icon} />;
return <Modal.Icon name={icon} />;
}

return icon;
Expand Down
@@ -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';
Expand Down Expand Up @@ -50,7 +50,7 @@ const TwoFactorEmailModal = ({ onConfirm, onClose, emailOrUsername }: TwoFactorE
title={t('Two-factor_authentication_email')}
onClose={onClose}
variant='warning'
icon={<Icon size='x20' name='info' color='default' />}
icon='info'
confirmDisabled={!code}
>
<Box mbe='x16'>{t('Verify_your_email_for_the_code_we_sent')}</Box>
Expand Down
@@ -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';
Expand Down Expand Up @@ -34,7 +34,7 @@ const TwoFactorPasswordModal = ({ onConfirm, onClose }: TwoFactorPasswordModalPr
title={t('Please_enter_your_password')}
onClose={onClose}
variant='warning'
icon={<Icon size='x20' name='info' color='default' />}
icon='info'
confirmDisabled={!code}
>
<Box mbe='x16'>{t('For_your_security_you_must_enter_your_current_password_to_continue')}</Box>
Expand Down
@@ -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';
Expand Down Expand Up @@ -34,7 +34,7 @@ const TwoFactorTotpModal = ({ onConfirm, onClose }: TwoFactorTotpModalProps): Re
title={t('Two Factor Authentication')}
onClose={onClose}
variant='warning'
icon={<Icon size='x20' name='info' color='default' />}
icon='info'
confirmDisabled={!code}
>
<Box mbe='x16'>{t('Open_your_authentication_app_and_enter_the_code')}</Box>
Expand Down

0 comments on commit 94c1d5c

Please sign in to comment.