scratch-www/src/components/forms/checkbox.jsx

20 lines
557 B
React
Raw Normal View History

var classNames = require('classnames');
var FRCCheckbox = require('formsy-react-components').Checkbox;
var React = require('react');
2016-06-02 15:25:02 -04:00
var defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
var Checkbox = React.createClass({
type: 'Checkbox',
render: function () {
var classes = classNames(
2016-06-06 15:50:31 -04:00
'checkbox-row',
this.props.className
);
return (
2016-06-06 15:50:31 -04:00
<FRCCheckbox {... this.props} rowClassName={classes} />
);
}
});
2016-06-02 15:25:02 -04:00
module.exports = defaultValidationHOC(Checkbox);