MM-12061: Fixes component name typo and adds missing param. (#2199)
This commit is contained in:
parent
793aea617c
commit
63bcdc42fb
2 changed files with 6 additions and 2 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue