scratch-www/src/components/forms/checkbox.jsx
2016-06-14 17:29:30 -04:00

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);