Hide the textfield when not enable.

This commit is contained in:
gaba
2016-11-15 20:31:24 -08:00
parent 621550e261
commit ff2c3cf30b
2 changed files with 5 additions and 1 deletions
@@ -61,3 +61,7 @@
font-size: 14px;
letter-spacing: 0.03em;
}
.hidden {
display: none;
}
@@ -72,7 +72,7 @@ class Configure extends React.Component {
Write a message to be added to the top of your comment stream. Pose a topic, include community guidelines, etc.
</ListItemContent>
</ListItem>
<ListItem className={styles.configSettingInfoBox}>
<ListItem className={`${styles.configSettingInfoBox} ${this.props.settings.infoBoxEnable ? null : styles.hidden}`} >
<Textfield
onChange={this.updateInfoBoxContent}
value={this.props.settings.infoBoxContent}