chore(superBlock): Remove superBlock.message Ui elements

pull/16771/head
Stuart Taylor 2018-02-20 13:45:43 +00:00 committed by Stuart Taylor
parent 1d420b835c
commit d17c2d33eb
1 changed files with 1 additions and 16 deletions

View File

@ -27,8 +27,7 @@ function mapStateToProps(_, { dashedName }) {
isOpen,
dashedName,
title: superBlock.title || dashedName,
blocks: superBlock.blocks || [],
message: superBlock.message
blocks: superBlock.blocks || []
})
);
}
@ -37,7 +36,6 @@ const propTypes = {
blocks: PropTypes.array,
dashedName: PropTypes.string,
isOpen: PropTypes.bool,
message: PropTypes.string,
title: PropTypes.string,
toggleThisPanel: PropTypes.func
};
@ -52,17 +50,6 @@ export class SuperBlock extends PureComponent {
this.props.toggleThisPanel(eventKey);
}
renderMessage(message) {
if (!message) {
return null;
}
return (
<div className={ `${ns}-block-description` }>
{ message }
</div>
);
}
renderHeader(isOpen, title, isCompleted) {
return (
<div className={ isCompleted ? 'faded' : '' }>
@ -81,7 +68,6 @@ export class SuperBlock extends PureComponent {
title,
dashedName,
blocks,
message,
isOpen
} = this.props;
return (
@ -95,7 +81,6 @@ export class SuperBlock extends PureComponent {
key={ dashedName || title }
onSelect={ this.handleSelect }
>
{ this.renderMessage(message) }
<Blocks blocks={ blocks } />
</Panel>
);