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