With updated deps
This commit is contained in:
21
app/components/Checkboxes/ColoredCheckbox.js
Normal file
21
app/components/Checkboxes/ColoredCheckbox.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/** @jsx React.DOM */
|
||||
var React = require('flux-react');
|
||||
|
||||
var ColoredCheckbox = React.createClass({
|
||||
render: function() {
|
||||
var style = {
|
||||
backgroundColor: this.props.color,
|
||||
padding: '5px'
|
||||
};
|
||||
return (
|
||||
<span key={this.props.key} style={style}>
|
||||
<input type="checkbox"
|
||||
onChange={this.props.onChange.bind(null, this.props.color)}
|
||||
checked={this.props.checked}/>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
module.exports = ColoredCheckbox;
|
||||
Reference in New Issue
Block a user