From 63bcdc42fba8263033277405ec72cf7b6f329545 Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Wed, 3 Oct 2018 09:33:52 -0400 Subject: [PATCH] MM-12061: Fixes component name typo and adds missing param. (#2199) --- app/screens/channel_info/channel_info.js | 1 + app/screens/channel_info/channel_info_header.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/screens/channel_info/channel_info.js b/app/screens/channel_info/channel_info.js index ce1b1013d..a86bef047 100644 --- a/app/screens/channel_info/channel_info.js +++ b/app/screens/channel_info/channel_info.js @@ -474,6 +474,7 @@ export default class ChannelInfo extends PureComponent { status={status} theme={theme} type={currentChannel.type} + isArchived={currentChannel.delete_at !== 0} /> } diff --git a/app/screens/channel_info/channel_info_header.js b/app/screens/channel_info/channel_info_header.js index f072d9020..2cc7f9472 100644 --- a/app/screens/channel_info/channel_info_header.js +++ b/app/screens/channel_info/channel_info_header.js @@ -8,7 +8,7 @@ import { View, } from 'react-native'; -import ChanneIcon from 'app/components/channel_icon'; +import ChannelIcon from 'app/components/channel_icon'; import FormattedDate from 'app/components/formatted_date'; import FormattedText from 'app/components/formatted_text'; import Markdown from 'app/components/markdown'; @@ -28,6 +28,7 @@ export default class ChannelInfoHeader extends React.PureComponent { status: PropTypes.string, theme: PropTypes.object.isRequired, type: PropTypes.string.isRequired, + isArchived: PropTypes.bool.isRequired, }; render() { @@ -43,6 +44,7 @@ export default class ChannelInfoHeader extends React.PureComponent { status, theme, type, + isArchived, } = this.props; const style = getStyleSheet(theme); @@ -52,13 +54,14 @@ export default class ChannelInfoHeader extends React.PureComponent { return ( -