[MM-55108] Replace usage of LocalizedIcon in 'user_group_popover.tsx' with i/span tags (#25283)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cd58a5baaf
Коммит
dc269f244e
@@ -202,20 +202,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
|||||||
className="CloseButton-lhxEdi gyMeQZ btn btn-sm btn-compact btn-icon"
|
className="CloseButton-lhxEdi gyMeQZ btn btn-sm btn-compact btn-icon"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
<LocalizedIcon
|
<i
|
||||||
ariaLabel={
|
|
||||||
Object {
|
|
||||||
"defaultMessage": "Close",
|
|
||||||
"id": "user_group_popover.close",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
className="icon icon-close"
|
className="icon icon-close"
|
||||||
>
|
/>
|
||||||
<i
|
|
||||||
aria-label="Close"
|
|
||||||
className="icon icon-close"
|
|
||||||
/>
|
|
||||||
</LocalizedIcon>
|
|
||||||
</button>
|
</button>
|
||||||
</CloseButton>
|
</CloseButton>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import type {UserProfile} from '@mattermost/types/users';
|
|||||||
|
|
||||||
import type {ActionResult} from 'mattermost-redux/types/actions';
|
import type {ActionResult} from 'mattermost-redux/types/actions';
|
||||||
|
|
||||||
import LocalizedIcon from 'components/localized_icon';
|
|
||||||
import {QuickInput} from 'components/quick_input/quick_input';
|
import {QuickInput} from 'components/quick_input/quick_input';
|
||||||
import GroupMemberList from 'components/user_group_popover/group_member_list';
|
import GroupMemberList from 'components/user_group_popover/group_member_list';
|
||||||
import UserGroupsModal from 'components/user_groups_modal';
|
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 Constants, {A11yClassNames, A11yCustomEventTypes, ModalIdentifiers} from 'utils/constants';
|
||||||
import type {A11yFocusEventDetail} from 'utils/constants';
|
import type {A11yFocusEventDetail} from 'utils/constants';
|
||||||
import {t} from 'utils/i18n';
|
|
||||||
import * as Keyboard from 'utils/keyboard';
|
import * as Keyboard from 'utils/keyboard';
|
||||||
import {shouldFocusMainTextbox} from 'utils/post_utils';
|
import {shouldFocusMainTextbox} from 'utils/post_utils';
|
||||||
|
|
||||||
@@ -209,9 +207,8 @@ const UserGroupPopover = (props: Props) => {
|
|||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
ref={closeRef}
|
ref={closeRef}
|
||||||
>
|
>
|
||||||
<LocalizedIcon
|
<i
|
||||||
className='icon icon-close'
|
className='icon icon-close'
|
||||||
ariaLabel={{id: t('user_group_popover.close'), defaultMessage: 'Close'}}
|
|
||||||
/>
|
/>
|
||||||
</CloseButton>
|
</CloseButton>
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user