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