2016-05-12 17:42:04 -04:00
|
|
|
var classNames = require('classnames');
|
|
|
|
var FRCRadioGroup = require('formsy-react-components').RadioGroup;
|
|
|
|
var React = require('react');
|
2016-06-02 15:25:02 -04:00
|
|
|
var defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
|
2016-06-13 12:48:58 -04:00
|
|
|
var inputHOC = require('./input-hoc.jsx');
|
|
|
|
|
|
|
|
require('./row.scss');
|
2016-05-12 17:42:04 -04:00
|
|
|
|
|
|
|
var RadioGroup = React.createClass({
|
|
|
|
type: 'RadioGroup',
|
|
|
|
render: function () {
|
|
|
|
var classes = classNames(
|
|
|
|
'radio-group',
|
|
|
|
this.props.className
|
|
|
|
);
|
|
|
|
return (
|
|
|
|
<FRCRadioGroup {... this.props} className={classes} />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-06-13 12:48:58 -04:00
|
|
|
module.exports = inputHOC(defaultValidationHOC(RadioGroup));
|