2018-01-30 09:54:45 -05:00
|
|
|
var classNames = require('classnames');
|
|
|
|
var FRCCheckbox = require('formsy-react-components').Checkbox;
|
|
|
|
var React = require('react');
|
|
|
|
var defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
|
|
|
|
var inputHOC = require('./input-hoc.jsx');
|
2016-06-13 12:48:58 -04:00
|
|
|
|
|
|
|
require('./row.scss');
|
2016-06-23 07:27:43 -04:00
|
|
|
require('./checkbox.scss');
|
2016-05-12 17:42:04 -04:00
|
|
|
|
2018-01-30 09:54:45 -05:00
|
|
|
var Checkbox = React.createClass({
|
|
|
|
type: 'Checkbox',
|
|
|
|
render: function () {
|
|
|
|
var classes = classNames(
|
|
|
|
'checkbox-row',
|
|
|
|
this.props.className
|
|
|
|
);
|
|
|
|
return (
|
|
|
|
<FRCCheckbox rowClassName={classes} {... this.props} />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
2016-05-12 17:42:04 -04:00
|
|
|
|
2016-06-13 12:48:58 -04:00
|
|
|
module.exports = inputHOC(defaultValidationHOC(Checkbox));
|