about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/avatar_overlay.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/components/avatar_overlay.js')
-rw-r--r--app/javascript/mastodon/components/avatar_overlay.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/javascript/mastodon/components/avatar_overlay.js b/app/javascript/mastodon/components/avatar_overlay.js
index afa0c6667..b76750513 100644
--- a/app/javascript/mastodon/components/avatar_overlay.js
+++ b/app/javascript/mastodon/components/avatar_overlay.js
@@ -2,6 +2,11 @@ import React from 'react';
 import PropTypes from 'prop-types';
 
 class AvatarOverlay extends React.PureComponent {
+  static propTypes = {
+    staticSrc: PropTypes.string.isRequired,
+    overlaySrc: PropTypes.string.isRequired
+  };
+
   render() {
     const {staticSrc, overlaySrc} = this.props;
 
@@ -20,11 +25,7 @@ class AvatarOverlay extends React.PureComponent {
       </div>
     );
   }
-}
 
-AvatarOverlay.propTypes = {
-  staticSrc: PropTypes.string.isRequired,
-  overlaySrc: PropTypes.string.isRequired,
-};
+}
 
 export default AvatarOverlay;