Skip to content

Commit

Permalink
[MM-55102] Replace usage of LocalizedIcon in 'channel_intro_message.t…
Browse files Browse the repository at this point in the history
…sx' with i/span tags (mattermost#25164)
  • Loading branch information
Dhoni77 authored Nov 10, 2023
1 parent 1ff1a13 commit f74bf47
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -57,6 +56,7 @@ export default class ChannelIntroMessage extends React.PureComponent<Props> {
this.props.actions.getTotalUsersStats();
}
}

render() {
const {
currentUserId,
Expand Down Expand Up @@ -316,7 +316,7 @@ function createOffTopicIntroMessage(channel: Channel, centeredIntro: string, sta
);
}

export function createDefaultIntroMessage(
function createDefaultIntroMessage(
channel: Channel,
centeredIntro: string,
stats: any,
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit f74bf47

Please sign in to comment.