[MM-55102] Replace usage of LocalizedIcon in 'channel_intro_message.tsx' with i/span tags (#25164)
Этот коммит содержится в:
@@ -16,7 +16,6 @@ import AddGroupsToTeamModal from 'components/add_groups_to_team_modal';
|
||||
import ChannelNotificationsModal from 'components/channel_notifications_modal';
|
||||
import EditChannelHeaderModal from 'components/edit_channel_header_modal';
|
||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
||||
import LocalizedIcon from 'components/localized_icon';
|
||||
import ChannelPermissionGate from 'components/permissions_gates/channel_permission_gate';
|
||||
import TeamPermissionGate from 'components/permissions_gates/team_permission_gate';
|
||||
import ProfilePicture from 'components/profile_picture';
|
||||
@@ -25,7 +24,7 @@ import UserProfile from 'components/user_profile';
|
||||
import EditIcon from 'components/widgets/icons/fa_edit_icon';
|
||||
|
||||
import {Constants, ModalIdentifiers} from 'utils/constants';
|
||||
import {getMonthLong, t} from 'utils/i18n';
|
||||
import {getMonthLong} from 'utils/i18n';
|
||||
import * as Utils from 'utils/utils';
|
||||
|
||||
import AddMembersButton from './add_members_button';
|
||||
@@ -57,6 +56,7 @@ export default class ChannelIntroMessage extends React.PureComponent<Props> {
|
||||
this.props.actions.getTotalUsersStats();
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
currentUserId,
|
||||
@@ -316,7 +316,7 @@ function createOffTopicIntroMessage(channel: Channel, centeredIntro: string, sta
|
||||
);
|
||||
}
|
||||
|
||||
export function createDefaultIntroMessage(
|
||||
function createDefaultIntroMessage(
|
||||
channel: Channel,
|
||||
centeredIntro: string,
|
||||
stats: any,
|
||||
@@ -373,9 +373,8 @@ export function createDefaultIntroMessage(
|
||||
dialogType={AddGroupsToTeamModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
<LocalizedIcon
|
||||
<i
|
||||
className='fa fa-user-plus'
|
||||
title={{id: t('generic_icons.add'), defaultMessage: 'Add Icon'}}
|
||||
/>
|
||||
<FormattedMessage
|
||||
id='intro_messages.addGroupsToTeam'
|
||||
|
||||
Ссылка в новой задаче
Block a user