mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-11 16:21:04 -05:00
23 lines
634 B
JavaScript
23 lines
634 B
JavaScript
const classNames = require('classnames');
|
|
const FRCRadioGroup = require('formsy-react-components').RadioGroup;
|
|
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('./radio-group.scss');
|
|
|
|
const RadioGroup = props => (
|
|
<FRCRadioGroup
|
|
rowClassName={classNames('radio-group', props.className)}
|
|
{... props}
|
|
/>
|
|
);
|
|
|
|
RadioGroup.propTypes = {
|
|
className: PropTypes.string
|
|
};
|
|
|
|
module.exports = inputHOC(defaultValidationHOC(RadioGroup));
|