about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/compose/components/upload_progress.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/features/compose/components/upload_progress.jsx')
-rw-r--r--app/assets/javascripts/components/features/compose/components/upload_progress.jsx18
1 files changed, 8 insertions, 10 deletions
diff --git a/app/assets/javascripts/components/features/compose/components/upload_progress.jsx b/app/assets/javascripts/components/features/compose/components/upload_progress.jsx
index 86ffbf936..a04edb97d 100644
--- a/app/assets/javascripts/components/features/compose/components/upload_progress.jsx
+++ b/app/assets/javascripts/components/features/compose/components/upload_progress.jsx
@@ -1,15 +1,8 @@
-import PureRenderMixin from 'react-addons-pure-render-mixin';
+import PropTypes from 'prop-types';
 import { Motion, spring } from 'react-motion';
 import { FormattedMessage } from 'react-intl';
 
-const UploadProgress = React.createClass({
-
-  propTypes: {
-    active: React.PropTypes.bool,
-    progress: React.PropTypes.number
-  },
-
-  mixins: [PureRenderMixin],
+class UploadProgress extends React.PureComponent {
 
   render () {
     const { active, progress } = this.props;
@@ -39,6 +32,11 @@ const UploadProgress = React.createClass({
     );
   }
 
-});
+}
+
+UploadProgress.propTypes = {
+  active: PropTypes.bool,
+  progress: PropTypes.number
+};
 
 export default UploadProgress;