mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 00:31:11 -05:00
590f505a61
This reverts commit1b1b396e92
, reversing changes made toa144bab0e6
.
25 lines
750 B
JavaScript
25 lines
750 B
JavaScript
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');
|
|
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));
|