eslint compliance on presentational components

This commit is contained in:
Cássio Zen
2016-06-16 19:20:36 -03:00
parent 8e7de6a64f
commit 37cf1ba52d
14 changed files with 134 additions and 87 deletions

View File

@ -1,9 +1,10 @@
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class UnknownControl extends React.Component {
render() {
const { field } = this.props;
return <div>No control for widget '{field.get('widget')}'.</div>;
}
export default function UnknownControl({ field }) {
return <div>No control for widget '{field.get('widget')}'.</div>;
}
UnknownControl.propTypes = {
field: ImmutablePropTypes.map,
};