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

26 lines
750 B
React
Raw Normal View History

const classNames = require('classnames');
const FRCCheckboxGroup = require('formsy-react-components').CheckboxGroup;
const PropTypes = require('prop-types');
const React = require('react');
const defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
const inputHOC = require('./input-hoc.jsx');
require('./row.scss');
2016-06-23 07:27:43 -04:00
require('./checkbox-group.scss');
const CheckboxGroup = props => (
<div className={classNames('checkbox-group', props.className)}>
<FRCCheckboxGroup
className={classNames('checkbox-group', props.className)}
{... props}
/>
</div>
);
CheckboxGroup.propTypes = {
className: PropTypes.string
};
module.exports = inputHOC(defaultValidationHOC(CheckboxGroup));