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