Struggling with hiding elements.

This commit is contained in:
gaba
2016-11-15 15:18:17 -08:00
parent 399ba72e0e
commit d24c7c0bc2
3 changed files with 9 additions and 4 deletions
@@ -102,8 +102,8 @@ class CommentStream extends Component {
? <div>
<div id="commentBox">
<InfoBox
content={this.props.config.infoBox.content}
enable={this.props.config.infoBox.enable}/>
content={this.props.config.infoBoxContent}
enable={this.props.config.infoBoxEnable}/>
<Count
id={rootItemId}
items={this.props.items}/>
@@ -58,6 +58,12 @@ hr {
color: white;
border-radius: 2px;
font-weight: bold;
display: block;
}
.hidden {
visibility: hidden;
display: none;
}
/* Comment Box Styles */
+1 -2
View File
@@ -3,8 +3,7 @@ const packagename = 'coral-plugin-infobox';
const InfoBox = ({enable, content}) =>
<div
className={`${packagename}-info`}
hidden={`${!enable}`}>
className={`${packagename}-info ${enable ? '' : ', hidden'}` }>
{content}
</div>;