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

20 lines
550 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(
'checkbox',
this.props.className
);
return (
<FRCCheckbox {... this.props} className={classes} />
);
}
});
2016-06-02 15:25:02 -04:00
module.exports = defaultValidationHOC(Checkbox);