2019-12-08 22:43:49 +01:00
|
|
|
/** @jsx React.DOM */
|
|
|
|
|
2022-10-08 20:37:38 +02:00
|
|
|
var Checkbox = createReactClass({
|
2019-12-08 22:43:49 +01:00
|
|
|
render: function() {
|
|
|
|
return (
|
|
|
|
<span className={this.props.className} onClick={this.props.onClick}>
|
|
|
|
{this.props.checked ?
|
2020-12-17 22:47:36 +01:00
|
|
|
<span className="checkbox">{ "\u2611" }</span> :
|
|
|
|
<span className="checkbox">{ "\u2610" }</span>
|
2019-12-08 22:43:49 +01:00
|
|
|
}
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|