]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong proptypes for onEditAccountNote (#14481)
authorThibG <thib@sitedethib.com>
Sun, 2 Aug 2020 09:20:02 +0000 (11:20 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2020 09:20:02 +0000 (11:20 +0200)
Also add missing PropTypes to the correct component

Fixes #14478

app/javascript/mastodon/features/account/components/header.js
app/javascript/mastodon/features/account_timeline/components/header.js

index 9613b0b9edcc46fba73818c684d4d742f1478662..61ecf045d18939424d8b2f99efb12dd292715fbc 100644 (file)
@@ -66,6 +66,16 @@ class Header extends ImmutablePureComponent {
     identity_props: ImmutablePropTypes.list,
     onFollow: PropTypes.func.isRequired,
     onBlock: PropTypes.func.isRequired,
+    onMention: PropTypes.func.isRequired,
+    onDirect: PropTypes.func.isRequired,
+    onReport: PropTypes.func.isRequired,
+    onReblogToggle: PropTypes.func.isRequired,
+    onMute: PropTypes.func.isRequired,
+    onBlockDomain: PropTypes.func.isRequired,
+    onUnblockDomain: PropTypes.func.isRequired,
+    onEndorseToggle: PropTypes.func.isRequired,
+    onAddToList: PropTypes.func.isRequired,
+    onEditAccountNote: PropTypes.func.isRequired,
     intl: PropTypes.object.isRequired,
     domain: PropTypes.string.isRequired,
   };
index 4e1b27466b249d5c482b431ac83a3b59b80f885a..abb15edcc7e4c49e8d886ad05522441f73fd7769 100644 (file)
@@ -23,7 +23,6 @@ export default class Header extends ImmutablePureComponent {
     onUnblockDomain: PropTypes.func.isRequired,
     onEndorseToggle: PropTypes.func.isRequired,
     onAddToList: PropTypes.func.isRequired,
-    onEditAccountNote: PropTypes.func.isRequired,
     hideTabs: PropTypes.bool,
     domain: PropTypes.string.isRequired,
   };