2018-01-30 11:53:12 -05:00
|
|
|
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');
|
2016-06-13 12:48:58 -04:00
|
|
|
|
|
|
|
require('./row.scss');
|
2016-06-23 07:27:43 -04:00
|
|
|
require('./checkbox-group.scss');
|
2016-05-12 17:42:04 -04:00
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const CheckboxGroup = props => (
|
|
|
|
<div className={classNames('checkbox-group', props.className)}>
|
|
|
|
<FRCCheckboxGroup
|
|
|
|
className={classNames('checkbox-group', props.className)}
|
|
|
|
{... props}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
CheckboxGroup.propTypes = {
|
|
|
|
className: PropTypes.string
|
|
|
|
};
|
2016-05-12 17:42:04 -04:00
|
|
|
|
2016-06-13 12:48:58 -04:00
|
|
|
module.exports = inputHOC(defaultValidationHOC(CheckboxGroup));
|