2016-05-12 17:42:04 -04:00
|
|
|
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;
|
2016-05-12 17:42:04 -04:00
|
|
|
|
|
|
|
var Checkbox = React.createClass({
|
|
|
|
type: 'Checkbox',
|
|
|
|
render: function () {
|
|
|
|
var classes = classNames(
|
2016-06-06 15:50:31 -04:00
|
|
|
'checkbox-row',
|
2016-05-12 17:42:04 -04:00
|
|
|
this.props.className
|
|
|
|
);
|
|
|
|
return (
|
2016-06-06 15:50:31 -04:00
|
|
|
<FRCCheckbox {... this.props} rowClassName={classes} />
|
2016-05-12 17:42:04 -04:00
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-06-02 15:25:02 -04:00
|
|
|
module.exports = defaultValidationHOC(Checkbox);
|