Fix a bunch of layout issues

This commit is contained in:
John Lyon-Smith
2018-02-26 12:05:23 -08:00
parent ab243dc6db
commit f8e930d59e
29 changed files with 279 additions and 301 deletions

View File

@@ -6,7 +6,8 @@ import { reactAutoBind } from 'auto-bind2'
export class Dimmer extends Component {
static propTypes = {
children: PropTypes.node
children: PropTypes.node,
active: PropTypes.bool
}
constructor(props) {
@@ -19,11 +20,11 @@ export class Dimmer extends Component {
}
render() {
return (
return this.props.active ? (
<div style={style.dimmer} onClick={this.preventPropagation}>
{this.props.children}
</div>
)
) : null
}
}