scratch-www/src/components/forms/checkbox.jsx
2018-01-30 11:53:12 -05:00

23 lines
619 B
JavaScript

const classNames = require('classnames');
const FRCCheckbox = require('formsy-react-components').Checkbox;
const PropTypes = require('prop-types');
const React = require('react');
const defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
const inputHOC = require('./input-hoc.jsx');
require('./row.scss');
require('./checkbox.scss');
const Checkbox = props => (
<FRCCheckbox
rowClassName={classNames('checkbox-row', props.className)}
{...props}
/>
);
Checkbox.propTypes = {
className: PropTypes.string
};
module.exports = inputHOC(defaultValidationHOC(Checkbox));