diff --git a/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap b/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap
index 232993bb2e..1e9d230769 100644
--- a/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap
+++ b/webapp/channels/src/components/channel_header/__snapshots__/channel_header.test.tsx.snap
@@ -71,18 +71,6 @@ exports[`components/ChannelHeader should match snapshot with last active display
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
-
- }
- onClick={[Function]}
- tooltip="Pinned messages"
- />
{
/>
);
+ const pinnedButton = this.props.pinnedPostsCount ? (
+
+ ) : (
+ null
+ );
+
let memberListButton = null;
if (!isDirect) {
const membersIconClass = classNames('member-rhs__trigger channel-header__icon channel-header__icon--wide channel-header__icon--left btn btn-icon btn-xs', {
@@ -599,13 +611,7 @@ class ChannelHeader extends React.PureComponent {
>
{muteTrigger}
{memberListButton}
-
+ {pinnedButton}
{this.props.isFileAttachmentsEnabled &&