From f74bf47f07ff9acbe888b238cc6e1c20b7b17efa Mon Sep 17 00:00:00 2001 From: Aldrin <53973174+Dhoni77@users.noreply.github.com> Date: Fri, 10 Nov 2023 22:06:06 +0530 Subject: [PATCH] [MM-55102] Replace usage of LocalizedIcon in 'channel_intro_message.tsx' with i/span tags (#25164) --- .../channel_intro_message/channel_intro_message.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/channels/src/components/post_view/channel_intro_message/channel_intro_message.tsx b/webapp/channels/src/components/post_view/channel_intro_message/channel_intro_message.tsx index 1f8599c177..8a03b68f67 100644 --- a/webapp/channels/src/components/post_view/channel_intro_message/channel_intro_message.tsx +++ b/webapp/channels/src/components/post_view/channel_intro_message/channel_intro_message.tsx @@ -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 { 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}} > -