about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/report/components/status_check_box.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/features/report/components/status_check_box.js')
-rw-r--r--app/javascript/mastodon/features/report/components/status_check_box.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/javascript/mastodon/features/report/components/status_check_box.js b/app/javascript/mastodon/features/report/components/status_check_box.js
index 85f792479..deab546f5 100644
--- a/app/javascript/mastodon/features/report/components/status_check_box.js
+++ b/app/javascript/mastodon/features/report/components/status_check_box.js
@@ -6,6 +6,13 @@ import Toggle from 'react-toggle';
 
 class StatusCheckBox extends React.PureComponent {
 
+  static propTypes = {
+    status: ImmutablePropTypes.map.isRequired,
+    checked: PropTypes.bool,
+    onToggle: PropTypes.func.isRequired,
+    disabled: PropTypes.bool
+  };
+
   render () {
     const { status, checked, onToggle, disabled } = this.props;
     const content = { __html: emojify(status.get('content')) };
@@ -30,11 +37,4 @@ class StatusCheckBox extends React.PureComponent {
 
 }
 
-StatusCheckBox.propTypes = {
-  status: ImmutablePropTypes.map.isRequired,
-  checked: PropTypes.bool,
-  onToggle: PropTypes.func.isRequired,
-  disabled: PropTypes.bool
-};
-
 export default StatusCheckBox;