Use ES Class Fields & Static Properties (#3008)

Use ES Class Fields & Static Properties (currently stage 2) for improve class outlook.

Added babel-plugin-transform-class-properties as a Babel plugin.
This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2017-05-12 14:44:10 +02:00
1 parent 44a3584e2d
commit 2991a7cfe6
79 files changed
+838 -1128

No files matched your search

@@ -5,6 +5,11 @@ import { FormattedMessage } from 'react-intl';
class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes.bool,
progress: PropTypes.number
};
render () {
const { active, progress } = this.props;
@@ -35,9 +40,4 @@ class UploadProgress extends React.PureComponent {
}
UploadProgress.propTypes = {
active: PropTypes.bool,
progress: PropTypes.number
};
export default UploadProgress;