From e1f0c8ee5715705891e595ecabf3ec69179e6c91 Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Tue, 6 Aug 2024 19:47:54 +0530 Subject: [PATCH] [MM-59346] Add labels for channel header and purpose in RHS channel info view (#27775) * MM-59346: show channel description header * refactor: updated inlt using npm and styles * channel description header persist --- .../channel_info_rhs/about_area_channel.tsx | 17 +++++++++++++++++ webapp/channels/src/i18n/en.json | 2 ++ 2 files changed, 19 insertions(+) diff --git a/webapp/channels/src/components/channel_info_rhs/about_area_channel.tsx b/webapp/channels/src/components/channel_info_rhs/about_area_channel.tsx index baf1478a8b..194eae5ca3 100644 --- a/webapp/channels/src/components/channel_info_rhs/about_area_channel.tsx +++ b/webapp/channels/src/components/channel_info_rhs/about_area_channel.tsx @@ -27,6 +27,17 @@ const ChannelPurpose = styled.div` } `; +const ChannelDescriptionHeading = styled.div` + color: rgba(var(--center-channel-color-rgb), 0.75); + font-size: 12px; + font-style: normal; + font-weight: 600; + line-height: 16px; + letter-spacing: 0.24px; + text-transform: uppercase; + padding: 6px 0px; +`; + const ChannelHeader = styled.div` margin-bottom: 12px; `; @@ -47,6 +58,9 @@ const AboutAreaChannel = ({channel, canEditChannelProperties, actions}: Props) = <> {(channel.purpose || canEditChannelProperties) && ( + + {formatMessage({id: 'channel_info_rhs.about_area.channel_purpose.heading', defaultMessage: 'Channel Purpose'})} + + + {formatMessage({id: 'channel_info_rhs.about_area.channel_header.heading', defaultMessage: 'Channel Header'})} +