[MM-55117] Replace usage of LocalizedIcon in 'view_user_group_modal_header.tsx' with i/span tags (#25486)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
109b074d92
Коммит
0a8197f858
@@ -3,17 +3,15 @@
|
|||||||
|
|
||||||
import React, {useCallback} from 'react';
|
import React, {useCallback} from 'react';
|
||||||
import {Modal} from 'react-bootstrap';
|
import {Modal} from 'react-bootstrap';
|
||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage, useIntl} from 'react-intl';
|
||||||
|
|
||||||
import type {Group} from '@mattermost/types/groups';
|
import type {Group} from '@mattermost/types/groups';
|
||||||
|
|
||||||
import type {ActionResult} from 'mattermost-redux/types/actions';
|
import type {ActionResult} from 'mattermost-redux/types/actions';
|
||||||
|
|
||||||
import AddUsersToGroupModal from 'components/add_users_to_group_modal';
|
import AddUsersToGroupModal from 'components/add_users_to_group_modal';
|
||||||
import LocalizedIcon from 'components/localized_icon';
|
|
||||||
|
|
||||||
import {ModalIdentifiers} from 'utils/constants';
|
import {ModalIdentifiers} from 'utils/constants';
|
||||||
import {t} from 'utils/i18n';
|
|
||||||
|
|
||||||
import type {ModalData} from 'types/actions';
|
import type {ModalData} from 'types/actions';
|
||||||
|
|
||||||
@@ -58,6 +56,8 @@ const ViewUserGroupModalHeader = ({
|
|||||||
decrementMemberCount,
|
decrementMemberCount,
|
||||||
actions,
|
actions,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
|
const {formatMessage} = useIntl();
|
||||||
|
|
||||||
const goToAddPeopleModal = useCallback(() => {
|
const goToAddPeopleModal = useCallback(() => {
|
||||||
actions.openModal({
|
actions.openModal({
|
||||||
modalId: ModalIdentifiers.ADD_USERS_TO_GROUP,
|
modalId: ModalIdentifiers.ADD_USERS_TO_GROUP,
|
||||||
@@ -164,12 +164,11 @@ const ViewUserGroupModalHeader = ({
|
|||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
className='modal-header-back-button btn btn-icon'
|
className='modal-header-back-button btn btn-icon'
|
||||||
aria-label='Close'
|
aria-label={formatMessage({id: 'user_groups_modal.goBackLabel', defaultMessage: 'Back'})}
|
||||||
onClick={goBack}
|
onClick={goBack}
|
||||||
>
|
>
|
||||||
<LocalizedIcon
|
<i
|
||||||
className='icon icon-arrow-left'
|
className='icon icon-arrow-left'
|
||||||
ariaLabel={{id: t('user_groups_modal.goBackLabel'), defaultMessage: 'Back'}}
|
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
{modalTitle()}
|
{modalTitle()}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user