[MM-55109] Replace usage of LocalizedIcon in 'group_member_list.tsx' with i/span tags (#25178)
Этот коммит содержится в:
@@ -1260,20 +1260,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -1479,20 +1468,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -1698,20 +1676,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -1917,20 +1884,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -2136,20 +2092,9 @@ exports[`component/user_group_popover should match snapshot 1`] = `
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
|
||||
@@ -530,20 +530,9 @@ exports[`component/user_group_popover/group_member_list should match snapshot 1`
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -749,20 +738,9 @@ exports[`component/user_group_popover/group_member_list should match snapshot 1`
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -968,20 +946,9 @@ exports[`component/user_group_popover/group_member_list should match snapshot 1`
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -1187,20 +1154,9 @@ exports[`component/user_group_popover/group_member_list should match snapshot 1`
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
@@ -1406,20 +1362,9 @@ exports[`component/user_group_popover/group_member_list should match snapshot 1`
|
||||
onMouseOut={[Function]}
|
||||
onMouseOver={[Function]}
|
||||
>
|
||||
<LocalizedIcon
|
||||
ariaLabel={
|
||||
Object {
|
||||
"defaultMessage": "Close",
|
||||
"id": "user_group_popover.close",
|
||||
}
|
||||
}
|
||||
<i
|
||||
className="icon icon-send"
|
||||
>
|
||||
<i
|
||||
aria-label="Close"
|
||||
className="icon icon-send"
|
||||
/>
|
||||
</LocalizedIcon>
|
||||
/>
|
||||
</button>
|
||||
</DMButton>
|
||||
</OverlayTrigger>
|
||||
|
||||
@@ -14,14 +14,12 @@ import type {ServerError} from '@mattermost/types/errors';
|
||||
import type {Group} from '@mattermost/types/groups';
|
||||
import type {UserProfile} from '@mattermost/types/users';
|
||||
|
||||
import LocalizedIcon from 'components/localized_icon';
|
||||
import NoResultsIndicator from 'components/no_results_indicator';
|
||||
import {NoResultsVariant} from 'components/no_results_indicator/types';
|
||||
import LoadingSpinner from 'components/widgets/loading/loading_spinner';
|
||||
import SimpleTooltip from 'components/widgets/simple_tooltip';
|
||||
import Avatar from 'components/widgets/users/avatar';
|
||||
|
||||
import {t} from 'utils/i18n';
|
||||
import * as Utils from 'utils/utils';
|
||||
|
||||
import {Load} from '../constants';
|
||||
@@ -197,9 +195,8 @@ const GroupMemberList = (props: Props) => {
|
||||
{user: name})}
|
||||
onClick={() => showDirectChannel(user)}
|
||||
>
|
||||
<LocalizedIcon
|
||||
<i
|
||||
className='icon icon-send'
|
||||
ariaLabel={{id: t('user_group_popover.close'), defaultMessage: 'Close'}}
|
||||
/>
|
||||
</DMButton>
|
||||
</SimpleTooltip>
|
||||
|
||||
Ссылка в новой задаче
Block a user