MM-12061: Fixes component name typo and adds missing param. (#2199)

This commit is contained in:
Martin Kraft 2018-10-03 09:33:52 -04:00 committed by Elias Nahum
parent 793aea617c
commit 63bcdc42fb
No known key found for this signature in database
GPG key ID: E038DB71E0B61702
2 changed files with 6 additions and 2 deletions

View file

@ -474,6 +474,7 @@ export default class ChannelInfo extends PureComponent {
status={status}
theme={theme}
type={currentChannel.type}
isArchived={currentChannel.delete_at !== 0}
/>
}
<View style={style.rowsContainer}>

View file

@ -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 (
<View style={style.container}>
<View style={style.channelNameContainer}>
<ChanneIcon
<ChannelIcon
isInfo={true}
membersCount={memberCount - 1}
size={16}
status={status}
theme={theme}
type={type}
isArchived={isArchived}
/>
<Text
ellipsizeMode='tail'