[MM-55112] Replace usage of LocalizedIcon in 'user_settings_notifications.tsx' with i/span tags (#25264)

This commit is contained in:
Umar Abid
2023-11-02 17:32:53 +05:00
committed by GitHub
parent 4948aa106b
commit f777765a3e

View File

@@ -17,12 +17,10 @@ import type {UserNotifyProps, UserProfile} from '@mattermost/types/users';
import type {ActionResult} from 'mattermost-redux/types/actions';
import ExternalLink from 'components/external_link';
import LocalizedIcon from 'components/localized_icon';
import SettingItem from 'components/setting_item';
import SettingItemMax from 'components/setting_item_max';
import Constants, {NotificationLevels} from 'utils/constants';
import {t} from 'utils/i18n';
import {stopTryNotificationRing} from 'utils/notification_sounds';
import {a11yFocus} from 'utils/utils';
@@ -1068,12 +1066,12 @@ class NotificationsTab extends React.PureComponent<Props, State> {
ref={this.drawerRef}
>
<div className='modal-back'>
<LocalizedIcon
<i
className='fa fa-angle-left'
ariaLabel={{
id: t('generic_icons.collapse'),
aria-label={this.props.intl.formatMessage({
id: 'generic_icons.collapse',
defaultMessage: 'Collapse Icon',
}}
})}
onClick={this.props.collapseModal}
/>
</div>