ES6 assets/js/src/form/fields/textarea.jsx
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
define([
|
||||
'react',
|
||||
],
|
||||
(
|
||||
React
|
||||
) => {
|
||||
const FormFieldTextarea = React.createClass({
|
||||
render: function render() {
|
||||
return (
|
||||
import React from 'react';
|
||||
|
||||
const FormFieldTextarea = () => (
|
||||
<textarea
|
||||
type="text"
|
||||
className="regular-text"
|
||||
@@ -18,9 +12,6 @@ define([
|
||||
onChange={this.props.onValueChange}
|
||||
{...this.props.field.validation}
|
||||
/>
|
||||
);
|
||||
},
|
||||
});
|
||||
);
|
||||
|
||||
return FormFieldTextarea;
|
||||
});
|
||||
export default FormFieldTextarea;
|
||||
|
Reference in New Issue
Block a user