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

24 lines
662 B
React
Raw Normal View History

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');
require('./row.scss');
2016-06-23 07:27:43 -04:00
require('./checkbox.scss');
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} />
);
}
});
module.exports = inputHOC(defaultValidationHOC(Checkbox));