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