improvement: Move inline styles to SCSS instead (#5578)
* fix: convert propStyle to propClass
This commit is contained in:
@@ -71,8 +71,8 @@ export default class ModelCollapse extends Component {
|
||||
|
||||
return (
|
||||
<span className={classes || ""}>
|
||||
{ title && <span onClick={this.toggleCollapsed} style={{ "cursor": "pointer" }}>{title}</span> }
|
||||
<span onClick={ this.toggleCollapsed } style={{ "cursor": "pointer" }}>
|
||||
{ title && <span onClick={this.toggleCollapsed} className="pointer">{title}</span> }
|
||||
<span onClick={ this.toggleCollapsed } className="pointer">
|
||||
<span className={ "model-toggle" + ( this.state.expanded ? "" : " collapsed" ) }></span>
|
||||
</span>
|
||||
{ this.state.expanded ? this.props.children :this.state.collapsedContent }
|
||||
|
||||
Reference in New Issue
Block a user