2018-01-30 11:53:12 -05:00
|
|
|
const classNames = require('classnames');
|
|
|
|
const FRCTextarea = require('formsy-react-components').Textarea;
|
|
|
|
const omit = require('lodash.omit');
|
|
|
|
const PropTypes = require('prop-types');
|
|
|
|
const React = require('react');
|
|
|
|
|
|
|
|
const defaultValidationHOC = require('./validations.jsx').defaultValidationHOC;
|
|
|
|
const inputHOC = require('./input-hoc.jsx');
|
2016-04-06 10:56:43 -04:00
|
|
|
|
2016-06-13 12:48:58 -04:00
|
|
|
require('./row.scss');
|
2016-04-06 10:56:43 -04:00
|
|
|
require('./textarea.scss');
|
|
|
|
|
2018-01-30 11:53:12 -05:00
|
|
|
const TextArea = props => (
|
|
|
|
<FRCTextarea
|
|
|
|
className="textarea"
|
|
|
|
rowClassName={classNames('textarea-row', props.className)}
|
|
|
|
{...omit(props, ['className'])}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
|
|
|
|
TextArea.propTypes = {
|
|
|
|
className: PropTypes.string
|
|
|
|
};
|
2016-04-06 10:56:43 -04:00
|
|
|
|
2016-06-13 12:48:58 -04:00
|
|
|
module.exports = inputHOC(defaultValidationHOC(TextArea));
|