mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-13 01:01:29 -05:00
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
var classNames = require('classnames');
|
|
var FRCCheckbox = require('formsy-react-components').Checkbox;
|
|
var React = require('react');
|
|
var defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
|
|
|
|
var Checkbox = React.createClass({
|
|
type: 'Checkbox',
|
|
render: function () {
|
|
var classes = classNames(
|
|
'checkbox-row',
|
|
this.props.className
|
|
);
|
|
return (
|
|
<FRCCheckbox {... this.props} rowClassName={classes} />
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = defaultValidationHOC(Checkbox);
|