updated off-topic and town square intro to remove the add members button

This commit is contained in:
Matthew Birtch 2024-03-12 10:08:10 -04:00
parent d65ce690b2
commit d6e7003f47
2 changed files with 2 additions and 7 deletions

View File

@ -279,9 +279,6 @@ describe('components/post_view/ChannelIntroMessages', () => {
);
screen.getByText('This is the start of off-topic, a channel for non-work-related conversations.');
expect(screen.getByText('This is the start of off-topic, a channel for non-work-related conversations.')).toHaveClass('channel-intro__text');
// stats.total_users_count is not specified, loading icon should be in the dom
screen.getByTitle('Loading Icon');
});
});
});

View File

@ -358,9 +358,8 @@ function createOffTopicIntroMessage(
actionButtons = (
<div className='channel-intro__actions'>
{createFavoriteButton(isFavorite, toggleFavorite)}
{channelInviteButton}
{setHeaderButton}
{!isMobileView && createNotificationPreferencesButton(channel, currentUser)}
{createNotificationPreferencesButton(channel, currentUser)}
</div>
);
}
@ -475,9 +474,8 @@ function createDefaultIntroMessage(
actionButtons = (
<div className='channel-intro__actions'>
{createFavoriteButton(isFavorite, toggleFavorite)}
{teamInviteLink}
{setHeaderButton}
{!isMobileView && createNotificationPreferencesButton(channel, currentUser)}
{createNotificationPreferencesButton(channel, currentUser)}
{teamIsGroupConstrained && pluginButtons}
</div>
);