summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/components/post_body.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/post_view/components/post_body.jsx')
-rw-r--r--webapp/components/post_view/components/post_body.jsx22
1 files changed, 12 insertions, 10 deletions
diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx
index 2ad9f96d1..0f481ec02 100644
--- a/webapp/components/post_view/components/post_body.jsx
+++ b/webapp/components/post_view/components/post_body.jsx
@@ -17,6 +17,8 @@ import {FormattedMessage} from 'react-intl';
import loadingGif from 'images/load.gif';
+import PropTypes from 'prop-types';
+
import React from 'react';
export default class PostBody extends React.Component {
@@ -208,14 +210,14 @@ export default class PostBody extends React.Component {
}
PostBody.propTypes = {
- post: React.PropTypes.object.isRequired,
- currentUser: React.PropTypes.object.isRequired,
- parentPost: React.PropTypes.object,
- retryPost: React.PropTypes.func,
- lastPostCount: React.PropTypes.number,
- handleCommentClick: React.PropTypes.func.isRequired,
- compactDisplay: React.PropTypes.bool,
- previewCollapsed: React.PropTypes.string,
- isCommentMention: React.PropTypes.bool,
- childComponentDidUpdateFunction: React.PropTypes.func
+ post: PropTypes.object.isRequired,
+ currentUser: PropTypes.object.isRequired,
+ parentPost: PropTypes.object,
+ retryPost: PropTypes.func,
+ lastPostCount: PropTypes.number,
+ handleCommentClick: PropTypes.func.isRequired,
+ compactDisplay: PropTypes.bool,
+ previewCollapsed: PropTypes.string,
+ isCommentMention: PropTypes.bool,
+ childComponentDidUpdateFunction: PropTypes.func
};