[MM-55108] Replace usage of LocalizedIcon in 'user_group_popover.tsx' with i/span tags (#25283)

This commit is contained in:
Sapna Sivakumar 2023-11-09 10:23:46 +00:00 committed by GitHub
parent cd58a5baaf
commit dc269f244e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 17 deletions

View File

@ -202,20 +202,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
className="CloseButton-lhxEdi gyMeQZ btn btn-sm btn-compact btn-icon"
onClick={[Function]}
>
<LocalizedIcon
ariaLabel={
Object {
"defaultMessage": "Close",
"id": "user_group_popover.close",
}
}
<i
className="icon icon-close"
>
<i
aria-label="Close"
className="icon icon-close"
/>
</LocalizedIcon>
/>
</button>
</CloseButton>
</div>

View File

@ -12,7 +12,6 @@ import type {UserProfile} from '@mattermost/types/users';
import type {ActionResult} from 'mattermost-redux/types/actions';
import LocalizedIcon from 'components/localized_icon';
import {QuickInput} from 'components/quick_input/quick_input';
import GroupMemberList from 'components/user_group_popover/group_member_list';
import UserGroupsModal from 'components/user_groups_modal';
@ -21,7 +20,6 @@ import Popover from 'components/widgets/popover';
import Constants, {A11yClassNames, A11yCustomEventTypes, ModalIdentifiers} from 'utils/constants';
import type {A11yFocusEventDetail} from 'utils/constants';
import {t} from 'utils/i18n';
import * as Keyboard from 'utils/keyboard';
import {shouldFocusMainTextbox} from 'utils/post_utils';
@ -209,9 +207,8 @@ const UserGroupPopover = (props: Props) => {
onClick={handleClose}
ref={closeRef}
>
<LocalizedIcon
<i
className='icon icon-close'
ariaLabel={{id: t('user_group_popover.close'), defaultMessage: 'Close'}}
/>
</CloseButton>
</Heading>