diff --git a/webapp/channels/src/components/admin_console/team_channel_settings/channel/details/__snapshots__/channel_profile.test.tsx.snap b/webapp/channels/src/components/admin_console/team_channel_settings/channel/details/__snapshots__/channel_profile.test.tsx.snap index 2c342450d94..4f5f18ebc9a 100644 --- a/webapp/channels/src/components/admin_console/team_channel_settings/channel/details/__snapshots__/channel_profile.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/team_channel_settings/channel/details/__snapshots__/channel_profile.test.tsx.snap @@ -114,7 +114,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelProfile should match />
{
diff --git a/webapp/channels/src/components/admin_console/team_channel_settings/channel/list/channel_list.tsx b/webapp/channels/src/components/admin_console/team_channel_settings/channel/list/channel_list.tsx index b654d62599d..743dbfaa0f8 100644 --- a/webapp/channels/src/components/admin_console/team_channel_settings/channel/list/channel_list.tsx +++ b/webapp/channels/src/components/admin_console/team_channel_settings/channel/list/channel_list.tsx @@ -206,7 +206,6 @@ export default class ChannelList extends React.PureComponent ) : null; diff --git a/webapp/channels/src/components/channel_header/channel_header_title.tsx b/webapp/channels/src/components/channel_header/channel_header_title.tsx index 9b3fa832cff..b4873f1fd9a 100644 --- a/webapp/channels/src/components/channel_header/channel_header_title.tsx +++ b/webapp/channels/src/components/channel_header/channel_header_title.tsx @@ -79,7 +79,6 @@ const ChannelHeaderTitle = ({ sharedIcon = ( ); diff --git a/webapp/channels/src/components/channel_members_rhs/member.tsx b/webapp/channels/src/components/channel_members_rhs/member.tsx index 2218db728a5..cfe2c40cddf 100644 --- a/webapp/channels/src/components/channel_members_rhs/member.tsx +++ b/webapp/channels/src/components/channel_members_rhs/member.tsx @@ -139,7 +139,6 @@ const Member = ({className, channel, member, index, totalUsers, editing, actions ( diff --git a/webapp/channels/src/components/forward_post_modal/forward_post_channel_select.tsx b/webapp/channels/src/components/forward_post_modal/forward_post_channel_select.tsx index 21247614083..be6f99c46b0 100644 --- a/webapp/channels/src/components/forward_post_modal/forward_post_channel_select.tsx +++ b/webapp/channels/src/components/forward_post_modal/forward_post_channel_select.tsx @@ -144,7 +144,6 @@ const FormattedOption = (props: ChannelOption & {className: string; isSingleValu const sharedIcon = details.shared ? ( ) : null; diff --git a/webapp/channels/src/components/searchable_channel_list.tsx b/webapp/channels/src/components/searchable_channel_list.tsx index a286d222dba..f5b11a9654c 100644 --- a/webapp/channels/src/components/searchable_channel_list.tsx +++ b/webapp/channels/src/components/searchable_channel_list.tsx @@ -201,7 +201,6 @@ export class SearchableChannelList extends React.PureComponent { const sharedChannelIcon = channel.shared ? ( ) : null; diff --git a/webapp/channels/src/components/shared_channel_indicator.tsx b/webapp/channels/src/components/shared_channel_indicator.tsx index d93c8301e78..2cc1ae807de 100644 --- a/webapp/channels/src/components/shared_channel_indicator.tsx +++ b/webapp/channels/src/components/shared_channel_indicator.tsx @@ -4,25 +4,15 @@ import React from 'react'; import {FormattedMessage} from 'react-intl'; -import type {ChannelType} from '@mattermost/types/channels'; - import WithTooltip from 'components/with_tooltip'; -import {Constants} from 'utils/constants'; - type Props = { className?: string; - channelType: ChannelType; withTooltip?: boolean; }; const SharedChannelIndicator: React.FC = (props: Props): JSX.Element => { - let sharedIcon; - if (props.channelType === Constants.PRIVATE_CHANNEL) { - sharedIcon = (); - } else { - sharedIcon = (); - } + const sharedIcon = (); if (!props.withTooltip) { return sharedIcon; diff --git a/webapp/channels/src/components/sidebar/sidebar_channel/sidebar_channel_link/sidebar_channel_link.tsx b/webapp/channels/src/components/sidebar/sidebar_channel/sidebar_channel_link/sidebar_channel_link.tsx index 46b3451d055..605a71cab34 100644 --- a/webapp/channels/src/components/sidebar/sidebar_channel/sidebar_channel_link/sidebar_channel_link.tsx +++ b/webapp/channels/src/components/sidebar/sidebar_channel/sidebar_channel_link/sidebar_channel_link.tsx @@ -228,7 +228,6 @@ export default class SidebarChannelLink extends React.PureComponent ) : null; diff --git a/webapp/channels/src/components/suggestion/switch_channel_provider.tsx b/webapp/channels/src/components/suggestion/switch_channel_provider.tsx index 105e14887cb..782ab7506ba 100644 --- a/webapp/channels/src/components/suggestion/switch_channel_provider.tsx +++ b/webapp/channels/src/components/suggestion/switch_channel_provider.tsx @@ -6,7 +6,7 @@ import React from 'react'; import {defineMessages} from 'react-intl'; import {connect, useSelector} from 'react-redux'; -import type {Channel, ChannelMembership, ChannelType} from '@mattermost/types/channels'; +import type {Channel, ChannelMembership} from '@mattermost/types/channels'; import type {PreferenceType} from '@mattermost/types/preferences'; import type {Team} from '@mattermost/types/teams'; import type {UserProfile} from '@mattermost/types/users'; @@ -243,7 +243,6 @@ const SwitchChannelSuggestion = React.forwardRef((props, sharedIcon = ( ); }