about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/favourites/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/features/favourites/index.js')
-rw-r--r--app/javascript/mastodon/features/favourites/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/favourites/index.js b/app/javascript/mastodon/features/favourites/index.js
index c916aa176..479eef0a1 100644
--- a/app/javascript/mastodon/features/favourites/index.js
+++ b/app/javascript/mastodon/features/favourites/index.js
@@ -16,6 +16,12 @@ const mapStateToProps = (state, props) => ({
 
 class Favourites extends ImmutablePureComponent {
 
+  static propTypes = {
+    params: PropTypes.object.isRequired,
+    dispatch: PropTypes.func.isRequired,
+    accountIds: ImmutablePropTypes.list
+  };
+
   componentWillMount () {
     this.props.dispatch(fetchFavourites(Number(this.props.params.statusId)));
   }
@@ -52,10 +58,4 @@ class Favourites extends ImmutablePureComponent {
 
 }
 
-Favourites.propTypes = {
-  params: PropTypes.object.isRequired,
-  dispatch: PropTypes.func.isRequired,
-  accountIds: ImmutablePropTypes.list
-};
-
 export default connect(mapStateToProps)(Favourites);