chore(superBlock): Remove superBlock.message Ui elements
This commit is contained in:
committed by
Stuart Taylor
parent
1d420b835c
commit
d17c2d33eb
@ -27,8 +27,7 @@ function mapStateToProps(_, { dashedName }) {
|
|||||||
isOpen,
|
isOpen,
|
||||||
dashedName,
|
dashedName,
|
||||||
title: superBlock.title || dashedName,
|
title: superBlock.title || dashedName,
|
||||||
blocks: superBlock.blocks || [],
|
blocks: superBlock.blocks || []
|
||||||
message: superBlock.message
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -37,7 +36,6 @@ const propTypes = {
|
|||||||
blocks: PropTypes.array,
|
blocks: PropTypes.array,
|
||||||
dashedName: PropTypes.string,
|
dashedName: PropTypes.string,
|
||||||
isOpen: PropTypes.bool,
|
isOpen: PropTypes.bool,
|
||||||
message: PropTypes.string,
|
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
toggleThisPanel: PropTypes.func
|
toggleThisPanel: PropTypes.func
|
||||||
};
|
};
|
||||||
@ -52,17 +50,6 @@ export class SuperBlock extends PureComponent {
|
|||||||
this.props.toggleThisPanel(eventKey);
|
this.props.toggleThisPanel(eventKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderMessage(message) {
|
|
||||||
if (!message) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return (
|
|
||||||
<div className={ `${ns}-block-description` }>
|
|
||||||
{ message }
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
renderHeader(isOpen, title, isCompleted) {
|
renderHeader(isOpen, title, isCompleted) {
|
||||||
return (
|
return (
|
||||||
<div className={ isCompleted ? 'faded' : '' }>
|
<div className={ isCompleted ? 'faded' : '' }>
|
||||||
@ -81,7 +68,6 @@ export class SuperBlock extends PureComponent {
|
|||||||
title,
|
title,
|
||||||
dashedName,
|
dashedName,
|
||||||
blocks,
|
blocks,
|
||||||
message,
|
|
||||||
isOpen
|
isOpen
|
||||||
} = this.props;
|
} = this.props;
|
||||||
return (
|
return (
|
||||||
@ -95,7 +81,6 @@ export class SuperBlock extends PureComponent {
|
|||||||
key={ dashedName || title }
|
key={ dashedName || title }
|
||||||
onSelect={ this.handleSelect }
|
onSelect={ this.handleSelect }
|
||||||
>
|
>
|
||||||
{ this.renderMessage(message) }
|
|
||||||
<Blocks blocks={ blocks } />
|
<Blocks blocks={ blocks } />
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user