From 108117ba4ddbbb7983280dfd2de516bf9505d2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20V=C3=A9lez?= Date: Mon, 11 Nov 2024 18:05:47 +0100 Subject: [PATCH] ICU Fixathon - clean up React.Fragment old syntax (#29006) * ICU Fixathon - clean up React.Fragment old syntax * enforce use of fragment shorthand over React.Fragment * use short version of fragment --- webapp/channels/.eslintrc.json | 3 ++- .../plugin_management/plugin_management.tsx | 4 ++-- .../system_user_detail/team_list/team_list.tsx | 4 ++-- .../components/apps_form/apps_form_component.tsx | 12 ++++++------ .../apps_form_field/apps_form_field.tsx | 8 ++++---- .../browse_channels/browse_channels.tsx | 4 ++-- .../channel_header_title_direct.tsx | 4 ++-- .../channel_header_title_group.tsx | 4 ++-- .../channel_header_dropdown_items.tsx | 4 ++-- .../channel_name_form_field.tsx | 4 ++-- .../convert_gm_to_channel_modal.tsx | 4 ++-- .../file_preview/file_progress_preview.tsx | 8 ++++---- .../src/components/integrations/bots/bots.tsx | 8 ++++---- .../dialog_element/dialog_element.tsx | 12 ++++++------ .../invitation_modal/add_to_channels.tsx | 4 ++-- .../keyboard_shortcuts_sequence.tsx | 4 ++-- .../src/components/link_tooltip/link_tooltip.tsx | 4 ++-- .../combined_system_message.tsx | 4 ++-- .../post_body_additional_content.tsx | 4 ++-- .../post_view/post_image/post_image.tsx | 4 ++-- .../post_list_virtualized.tsx | 8 ++++---- .../post_view/post_reaction/post_reaction.tsx | 4 ++-- .../post_recent_reactions.tsx | 4 ++-- .../components/quick_input/max_length_input.tsx | 4 ++-- .../src/components/search_hint/search_hint.tsx | 4 ++-- .../channels/src/components/sidebar/sidebar.tsx | 4 ++-- .../sidebar_category/sidebar_category.tsx | 8 ++++---- .../channels/src/components/size_aware_image.tsx | 4 ++-- .../components/toast_wrapper/toast_wrapper.tsx | 4 ++-- .../color_chooser/color_chooser.tsx | 4 ++-- .../components/widgets/inputs/channels_input.tsx | 4 ++-- .../widgets/inputs/users_emails_input.tsx | 16 ++++++++-------- .../widgets/menu/menu_items/submenu_item.tsx | 4 ++-- .../channel_header_plug/channel_header_plug.tsx | 4 ++-- .../channels/src/plugins/pluggable/pluggable.tsx | 4 ++-- 35 files changed, 94 insertions(+), 93 deletions(-) diff --git a/webapp/channels/.eslintrc.json b/webapp/channels/.eslintrc.json index af449be839..55e8ea5220 100644 --- a/webapp/channels/.eslintrc.json +++ b/webapp/channels/.eslintrc.json @@ -32,7 +32,8 @@ "react/style-prop-object": [2, { "allow": ["Timestamp"] }], - "formatjs/no-multiple-whitespaces": 2 + "formatjs/no-multiple-whitespaces": 2, + "react/jsx-fragments": ["error", "syntax"] }, "overrides": [ { diff --git a/webapp/channels/src/components/admin_console/plugin_management/plugin_management.tsx b/webapp/channels/src/components/admin_console/plugin_management/plugin_management.tsx index 362ffa64aa..03b95eb461 100644 --- a/webapp/channels/src/components/admin_console/plugin_management/plugin_management.tsx +++ b/webapp/channels/src/components/admin_console/plugin_management/plugin_management.tsx @@ -927,8 +927,8 @@ class PluginManagement extends OLDAdminSettings { renderSettings = () => { const {enableUploads} = this.state; const enable = this.props.config?.PluginSettings?.Enable; - let serverError = ; - let lastMessage = ; + let serverError = <>; + let lastMessage = <>; // Using props values to make sure these are set on the server and not just locally const enableUploadButton = enableUploads && enable && !(this.props.config.PluginSettings && this.props.config.PluginSettings.RequirePluginSignature); diff --git a/webapp/channels/src/components/admin_console/system_user_detail/team_list/team_list.tsx b/webapp/channels/src/components/admin_console/system_user_detail/team_list/team_list.tsx index 791e7c7f87..14bc842abe 100644 --- a/webapp/channels/src/components/admin_console/system_user_detail/team_list/team_list.tsx +++ b/webapp/channels/src/components/admin_console/system_user_detail/team_list/team_list.tsx @@ -176,7 +176,7 @@ export default class TeamList extends React.PureComponent { ); } return ( - + <>
{serverError}
{ emptyList={this.props.emptyList} userId={this.props.userId} /> -
+ ); } } diff --git a/webapp/channels/src/components/apps_form/apps_form_component.tsx b/webapp/channels/src/components/apps_form/apps_form_component.tsx index 28f6f9cbf3..629b639da3 100644 --- a/webapp/channels/src/components/apps_form/apps_form_component.tsx +++ b/webapp/channels/src/components/apps_form/apps_form_component.tsx @@ -451,10 +451,10 @@ export class AppsForm extends React.PureComponent { } return ( - + <> {iconComponent} {title} - + ); } @@ -487,7 +487,7 @@ export class AppsForm extends React.PureComponent { const {fields, header} = this.props.form; return (fields || header) && ( - + <> {header && ( { /> )} {this.renderElements()} - + ); } @@ -549,7 +549,7 @@ export class AppsForm extends React.PureComponent { } return ( - + <>
{this.state.formError && (
@@ -571,7 +571,7 @@ export class AppsForm extends React.PureComponent { {submitButtons}
- + ); } diff --git a/webapp/channels/src/components/apps_form/apps_form_field/apps_form_field.tsx b/webapp/channels/src/components/apps_form/apps_form_field/apps_form_field.tsx index c4b9165933..fdf2740157 100644 --- a/webapp/channels/src/components/apps_form/apps_form_field/apps_form_field.tsx +++ b/webapp/channels/src/components/apps_form/apps_form_field/apps_form_field.tsx @@ -73,26 +73,26 @@ export default class AppsFormField extends React.PureComponent { const displayName = (field.modal_label || field.label) as string; let displayNameContent: React.ReactNode = (field.modal_label || field.label) as string; displayNameContent = ( - + <> {displayName} {!field.is_required && ( {' (optional)'} )} - + ); const helpText = field.description; let helpTextContent: React.ReactNode = ; if (errorText) { helpTextContent = ( - + <>
{errorText}
-
+ ); } diff --git a/webapp/channels/src/components/browse_channels/browse_channels.tsx b/webapp/channels/src/components/browse_channels/browse_channels.tsx index b24b9d7e78..8fe686e58e 100644 --- a/webapp/channels/src/components/browse_channels/browse_channels.tsx +++ b/webapp/channels/src/components/browse_channels/browse_channels.tsx @@ -339,7 +339,7 @@ export default class BrowseChannels extends React.PureComponent { ); const body = this.state.loading ? : ( - + <> { channelsMemberCount={this.props.channelsMemberCount} /> {serverError} - + ); const title = ( diff --git a/webapp/channels/src/components/channel_header/channel_header_title_direct.tsx b/webapp/channels/src/components/channel_header/channel_header_title_direct.tsx index 17e36904c7..c0e75a37b1 100644 --- a/webapp/channels/src/components/channel_header/channel_header_title_direct.tsx +++ b/webapp/channels/src/components/channel_header/channel_header_title_direct.tsx @@ -25,7 +25,7 @@ const ChannelHeaderTitleDirect = ({ const displayName = displayUsername(dmUser, teammateNameDisplaySetting); return ( - + <> {currentUser.id !== dmUser?.id && displayName + ' '} {currentUser.id === dmUser?.id && } {isGuest(dmUser?.roles ?? '') && } - + ); }; diff --git a/webapp/channels/src/components/channel_header/channel_header_title_group.tsx b/webapp/channels/src/components/channel_header/channel_header_title_group.tsx index ba695ad41f..3c17fa41c9 100644 --- a/webapp/channels/src/components/channel_header/channel_header_title_group.tsx +++ b/webapp/channels/src/components/channel_header/channel_header_title_group.tsx @@ -48,7 +48,7 @@ const ChannelHeaderTitleGroup = ({ const displayNames = channel.display_name.split(', '); return ( - + <> {displayNames.map((displayName, index) => { if (!membersMap[displayName]) { return displayName; @@ -64,7 +64,7 @@ const ChannelHeaderTitleGroup = ({ ); })} - + ); }; diff --git a/webapp/channels/src/components/channel_header_dropdown/channel_header_dropdown_items.tsx b/webapp/channels/src/components/channel_header_dropdown/channel_header_dropdown_items.tsx index 3e3ed0b292..03de0b6270 100644 --- a/webapp/channels/src/components/channel_header_dropdown/channel_header_dropdown_items.tsx +++ b/webapp/channels/src/components/channel_header_dropdown/channel_header_dropdown_items.tsx @@ -105,7 +105,7 @@ export default class ChannelHeaderDropdown extends React.PureComponent { }); return ( - + <> { /> - + ); } } diff --git a/webapp/channels/src/components/channel_name_form_field/channel_name_form_field.tsx b/webapp/channels/src/components/channel_name_form_field/channel_name_form_field.tsx index 9f6c82aada..9253ce117c 100644 --- a/webapp/channels/src/components/channel_name_form_field/channel_name_form_field.tsx +++ b/webapp/channels/src/components/channel_name_form_field/channel_name_form_field.tsx @@ -117,7 +117,7 @@ const ChannelNameFormField = (props: Props): JSX.Element => { }, [displayNameError, urlError]); return ( - + <> { error={urlError || props.urlError} onChange={handleOnURLChange} /> - + ); }; diff --git a/webapp/channels/src/components/convert_gm_to_channel_modal/convert_gm_to_channel_modal.tsx b/webapp/channels/src/components/convert_gm_to_channel_modal/convert_gm_to_channel_modal.tsx index 4de5d0a328..351b9aae2f 100644 --- a/webapp/channels/src/components/convert_gm_to_channel_modal/convert_gm_to_channel_modal.tsx +++ b/webapp/channels/src/components/convert_gm_to_channel_modal/convert_gm_to_channel_modal.tsx @@ -168,7 +168,7 @@ const ConvertGmToChannelModal = (props: Props) => { ); } else { subBody = ( - + <> { @@ -199,7 +199,7 @@ const ConvertGmToChannelModal = (props: Props) => {
} -
+ ); } diff --git a/webapp/channels/src/components/file_preview/file_progress_preview.tsx b/webapp/channels/src/components/file_preview/file_progress_preview.tsx index 74f6697c64..f9af7e2af2 100644 --- a/webapp/channels/src/components/file_preview/file_progress_preview.tsx +++ b/webapp/channels/src/components/file_preview/file_progress_preview.tsx @@ -37,7 +37,7 @@ export default class FileProgressPreview extends React.PureComponent { previewImage =
; fileNameComponent = ( - + <> { defaultMessage='Processing...' /> ) : ( - + <> {percentTxt} - + )} - + ); if (percent) { diff --git a/webapp/channels/src/components/integrations/bots/bots.tsx b/webapp/channels/src/components/integrations/bots/bots.tsx index 9a8fb4df2f..3e2dfbad6d 100644 --- a/webapp/channels/src/components/integrations/bots/bots.tsx +++ b/webapp/channels/src/components/integrations/bots/bots.tsx @@ -151,7 +151,7 @@ export default class Bots extends React.PureComponent { return React.cloneElement(child, {filter: props.filter}); }); return ( - + <>
{
{botsToDisplay}
- + ); } @@ -244,7 +244,7 @@ export default class Bots extends React.PureComponent { /> } helpText={ - + <> { a: (chunks: string) => {chunks}, }} /> - + } searchPlaceholder={Utils.localizeMessage({id: 'bots.manage.search', defaultMessage: 'Search Bot Accounts'})} loading={this.state.loading} diff --git a/webapp/channels/src/components/interactive_dialog/dialog_element/dialog_element.tsx b/webapp/channels/src/components/interactive_dialog/dialog_element/dialog_element.tsx index 2697cb3fc5..79f274440a 100644 --- a/webapp/channels/src/components/interactive_dialog/dialog_element/dialog_element.tsx +++ b/webapp/channels/src/components/interactive_dialog/dialog_element/dialog_element.tsx @@ -121,7 +121,7 @@ export default class DialogElement extends React.PureComponent { let displayNameContent: React.ReactNode = displayName; if (optional) { displayNameContent = ( - + <> {displayName + ' '} { defaultMessage='(optional)' /> - + ); } else { displayNameContent = ( - + <> {displayName} {' *'} - + ); } let helpTextContent: React.ReactNode = helpText; if (errorText) { helpTextContent = ( - + <> {helpText}
{errorText}
-
+ ); } diff --git a/webapp/channels/src/components/invitation_modal/add_to_channels.tsx b/webapp/channels/src/components/invitation_modal/add_to_channels.tsx index 96def4a3ca..d54123e6d6 100644 --- a/webapp/channels/src/components/invitation_modal/add_to_channels.tsx +++ b/webapp/channels/src/components/invitation_modal/add_to_channels.tsx @@ -143,7 +143,7 @@ export default function AddToChannels(props: Props) {
)} {props.customMessage.open && ( - + <>
props.setCustomMessage(e.target.value)} value={props.customMessage.message} /> - + )}
); diff --git a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.tsx b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.tsx index 118d4cb9a5..3b80acfaa7 100644 --- a/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.tsx +++ b/webapp/channels/src/components/keyboard_shortcuts/keyboard_shortcuts_sequence/keyboard_shortcuts_sequence.tsx @@ -60,10 +60,10 @@ function KeyboardShortcutSequence({shortcut, hideDescription, hoistDescription, )); return ( - + <> {'\t|\t'} {shortcutKeys} - + ); }; diff --git a/webapp/channels/src/components/link_tooltip/link_tooltip.tsx b/webapp/channels/src/components/link_tooltip/link_tooltip.tsx index 8e60b5f35f..5c32b9ebbc 100644 --- a/webapp/channels/src/components/link_tooltip/link_tooltip.tsx +++ b/webapp/channels/src/components/link_tooltip/link_tooltip.tsx @@ -110,7 +110,7 @@ export default class LinkTooltip extends React.PureComponent { 'data-channel-mention': attributes['data-channel-mention'], }; return ( - + <> {ReactDOM.createPortal(
{ > {children} - + ); } } diff --git a/webapp/channels/src/components/post_view/combined_system_message/combined_system_message.tsx b/webapp/channels/src/components/post_view/combined_system_message/combined_system_message.tsx index 2556577dde..b1d2077da2 100644 --- a/webapp/channels/src/components/post_view/combined_system_message/combined_system_message.tsx +++ b/webapp/channels/src/components/post_view/combined_system_message/combined_system_message.tsx @@ -378,9 +378,9 @@ export class CombinedSystemMessage extends React.PureComponent { } return ( - + <> {content} - + ); } } diff --git a/webapp/channels/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx b/webapp/channels/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx index f35e5e877f..78333afb56 100644 --- a/webapp/channels/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx +++ b/webapp/channels/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx @@ -156,13 +156,13 @@ export default class PostBodyAdditionalContent extends React.PureComponent + <> {this.props.children} - + ); } } diff --git a/webapp/channels/src/components/post_view/post_image/post_image.tsx b/webapp/channels/src/components/post_view/post_image/post_image.tsx index 8f5a945847..3b05e0e584 100644 --- a/webapp/channels/src/components/post_view/post_image/post_image.tsx +++ b/webapp/channels/src/components/post_view/post_image/post_image.tsx @@ -64,7 +64,7 @@ const PostImage = ({ imageMetadata={imageMetadata} > {(safeLink) => ( - + <> - + )}
diff --git a/webapp/channels/src/components/post_view/post_list_virtualized/post_list_virtualized.tsx b/webapp/channels/src/components/post_view/post_list_virtualized/post_list_virtualized.tsx index 74a01823e1..3386082746 100644 --- a/webapp/channels/src/components/post_view/post_list_virtualized/post_list_virtualized.tsx +++ b/webapp/channels/src/components/post_view/post_list_virtualized/post_list_virtualized.tsx @@ -683,7 +683,7 @@ export default class PostList extends React.PureComponent { aria-label={Utils.localizeMessage({id: 'accessibility.sections.centerContent', defaultMessage: 'message list main region'})} > {this.props.isMobileView && ( - + <> { atBottom={Boolean(this.state.atBottom)} onClick={this.scrollToBottom} /> - + )}
{ {({height, width}) => ( - + <>
{ > {this.renderRow} - + )}
diff --git a/webapp/channels/src/components/post_view/post_reaction/post_reaction.tsx b/webapp/channels/src/components/post_view/post_reaction/post_reaction.tsx index 2984cc1d71..a3a1f7e1df 100644 --- a/webapp/channels/src/components/post_view/post_reaction/post_reaction.tsx +++ b/webapp/channels/src/components/post_view/post_reaction/post_reaction.tsx @@ -80,7 +80,7 @@ export default class PostReaction extends React.PureComponent { teamId={teamId} permissions={[Permissions.ADD_REACTION]} > - + <> { - + ); } diff --git a/webapp/channels/src/components/post_view/post_recent_reactions/post_recent_reactions.tsx b/webapp/channels/src/components/post_view/post_recent_reactions/post_recent_reactions.tsx index d2abac7ded..172b4ae4e9 100644 --- a/webapp/channels/src/components/post_view/post_recent_reactions/post_recent_reactions.tsx +++ b/webapp/channels/src/components/post_view/post_recent_reactions/post_recent_reactions.tsx @@ -99,13 +99,13 @@ export default class PostRecentReactions extends React.PureComponent
- + <> - +
diff --git a/webapp/channels/src/components/quick_input/max_length_input.tsx b/webapp/channels/src/components/quick_input/max_length_input.tsx index a84e1e734b..c388d7c85f 100644 --- a/webapp/channels/src/components/quick_input/max_length_input.tsx +++ b/webapp/channels/src/components/quick_input/max_length_input.tsx @@ -25,7 +25,7 @@ const MaxLengthInput: FC = forwardRef( }); return ( - + <> = forwardRef( {excess} )} - + ); }, ); diff --git a/webapp/channels/src/components/search_hint/search_hint.tsx b/webapp/channels/src/components/search_hint/search_hint.tsx index 7da322201b..0c4be782a1 100644 --- a/webapp/channels/src/components/search_hint/search_hint.tsx +++ b/webapp/channels/src/components/search_hint/search_hint.tsx @@ -104,7 +104,7 @@ const SearchHint = (props: Props): JSX.Element => { } return ( - + <> {props.withTitle && (!props.searchType) &&

{

))} -
+ ); }; diff --git a/webapp/channels/src/components/sidebar/sidebar.tsx b/webapp/channels/src/components/sidebar/sidebar.tsx index 983f438cd6..8291183127 100644 --- a/webapp/channels/src/components/sidebar/sidebar.tsx +++ b/webapp/channels/src/components/sidebar/sidebar.tsx @@ -210,9 +210,9 @@ export default class Sidebar extends React.PureComponent { } return ( - + <> {moreDirectChannelsModal} - + ); }; diff --git a/webapp/channels/src/components/sidebar/sidebar_category/sidebar_category.tsx b/webapp/channels/src/components/sidebar/sidebar_category/sidebar_category.tsx index 0a0aaf4445..9442aa8057 100644 --- a/webapp/channels/src/components/sidebar/sidebar_category/sidebar_category.tsx +++ b/webapp/channels/src/components/sidebar/sidebar_category/sidebar_category.tsx @@ -173,7 +173,7 @@ export default class SidebarCategory extends React.PureComponent { } return ( - + <> { - + ); }; @@ -270,7 +270,7 @@ export default class SidebarCategory extends React.PureComponent { const addHelpLabel = localizeMessage({id: 'sidebar.createDirectMessage', defaultMessage: 'Create new direct message'}); categoryMenu = ( - + <> { - + ); if (!channelIds || !channelIds.length) { diff --git a/webapp/channels/src/components/size_aware_image.tsx b/webapp/channels/src/components/size_aware_image.tsx index cca9ae517c..66bf85bf80 100644 --- a/webapp/channels/src/components/size_aware_image.tsx +++ b/webapp/channels/src/components/size_aware_image.tsx @@ -446,7 +446,7 @@ export default class SizeAwareImage extends React.PureComponent { const shouldShowImg = !this.dimensionsAvailable(dimensions) || this.state.loaded; return ( - + <> {fallback}
{ > {this.renderImageWithContainerIfNeeded()}
-
+ ); }; diff --git a/webapp/channels/src/components/toast_wrapper/toast_wrapper.tsx b/webapp/channels/src/components/toast_wrapper/toast_wrapper.tsx index 9f25799b4c..34848be007 100644 --- a/webapp/channels/src/components/toast_wrapper/toast_wrapper.tsx +++ b/webapp/channels/src/components/toast_wrapper/toast_wrapper.tsx @@ -514,9 +514,9 @@ export class ToastWrapperClass extends React.PureComponent { const toastToRender = this.getToastToRender(); return ( - + <> {toastToRender} - + ); } } diff --git a/webapp/channels/src/components/user_settings/display/user_settings_theme/color_chooser/color_chooser.tsx b/webapp/channels/src/components/user_settings/display/user_settings_theme/color_chooser/color_chooser.tsx index a52c24d101..5ba5369eec 100644 --- a/webapp/channels/src/components/user_settings/display/user_settings_theme/color_chooser/color_chooser.tsx +++ b/webapp/channels/src/components/user_settings/display/user_settings_theme/color_chooser/color_chooser.tsx @@ -18,13 +18,13 @@ export default function ColorChooser(props: Props) { }; return ( - + <> - + ); } diff --git a/webapp/channels/src/components/widgets/inputs/channels_input.tsx b/webapp/channels/src/components/widgets/inputs/channels_input.tsx index f47f404dfe..ac95208442 100644 --- a/webapp/channels/src/components/widgets/inputs/channels_input.tsx +++ b/webapp/channels/src/components/widgets/inputs/channels_input.tsx @@ -130,11 +130,11 @@ export default class ChannelsInput extends React.PureComponen icon = ; } return ( - + <> {icon} {channel.display_name} {channel.name} - + ); }; diff --git a/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx b/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx index 2602dd6cdb..ab286c8757 100644 --- a/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx +++ b/webapp/channels/src/components/widgets/inputs/users_emails_input.tsx @@ -151,7 +151,7 @@ export default class UsersEmailsInput extends React.PureComponent return this.getCreateLabel((user as EmailInvite).value); } return ( - + <> {this.renderUserName(user as UserProfile)} {botBadge} {guestBadge} - + ); } if ((user as EmailInvite).value && isEmail((user as EmailInvite).value)) { return ( - + <> {(user as EmailInvite).value} - + ); } return ( - + <> {getDisplayName(user as UserProfile)} {botBadge} {guestBadge} - + ); }; @@ -203,7 +203,7 @@ export default class UsersEmailsInput extends React.PureComponent }; getCreateLabel = (value: string) => ( - + <> values={{email: value}} disableLinks={true} /> - + ); Input = (props: InputProps) => { diff --git a/webapp/channels/src/components/widgets/menu/menu_items/submenu_item.tsx b/webapp/channels/src/components/widgets/menu/menu_items/submenu_item.tsx index 9c9d1c56ed..4f63407e99 100644 --- a/webapp/channels/src/components/widgets/menu/menu_items/submenu_item.tsx +++ b/webapp/channels/src/components/widgets/menu/menu_items/submenu_item.tsx @@ -159,10 +159,10 @@ export default class SubMenuItem extends React.PureComponent { let textProp = text; if (icon) { textProp = ( - + <> {icon} {textProp} - + ); } diff --git a/webapp/channels/src/plugins/channel_header_plug/channel_header_plug.tsx b/webapp/channels/src/plugins/channel_header_plug/channel_header_plug.tsx index a23d4e2fb6..e724d84ff7 100644 --- a/webapp/channels/src/plugins/channel_header_plug/channel_header_plug.tsx +++ b/webapp/channels/src/plugins/channel_header_plug/channel_header_plug.tsx @@ -338,7 +338,7 @@ class ChannelHeaderPlug extends React.PureComponent } > - + <> {items.length} - + + <> {content} -
+ ); }