Everything compiling again

This commit is contained in:
John Lyon-Smith
2018-02-26 09:14:04 -08:00
parent 0571196a7f
commit ab243dc6db
11 changed files with 91 additions and 148 deletions

View File

@@ -0,0 +1,30 @@
import React, { Component } from 'react'
import Radium from 'radium'
import PropTypes from 'prop-types'
import style from './Dimmer.style'
import { reactAutoBind } from 'auto-bind2'
export class Dimmer extends Component {
static propTypes = {
children: PropTypes.node
}
constructor(props) {
super(props)
reactAutoBind(this)
}
preventPropagation(e) {
e.stopPropagation()
}
render() {
return (
<div style={style.dimmer} onClick={this.preventPropagation}>
{this.props.children}
</div>
)
}
}
export default Radium(Dimmer)