diff --git a/client/coral-configure/components/CloseCommentsInfo.js b/client/coral-configure/components/CloseCommentsInfo.js
index b9c6371c4..fbb5f1aa0 100644
--- a/client/coral-configure/components/CloseCommentsInfo.js
+++ b/client/coral-configure/components/CloseCommentsInfo.js
@@ -1,9 +1,9 @@
import React from 'react';
import {Button} from 'coral-ui';
-
+import PropTypes from 'prop-types';
import t from 'coral-framework/services/i18n';
-export default ({status, onClick}) => (
+const CloseCommentsInfo = ({status, onClick}) => (
status === 'open' ? (
@@ -20,3 +20,10 @@ export default ({status, onClick}) => (
)
);
+
+CloseCommentsInfo.propTypes = {
+ status: PropTypes.string,
+ onClick: PropTypes.onClick,
+};
+
+export default CloseCommentsInfo;
\ No newline at end of file
diff --git a/client/coral-embed-stream/src/components/Stream.js b/client/coral-embed-stream/src/components/Stream.js
index 1ec780e63..96101c1e5 100644
--- a/client/coral-embed-stream/src/components/Stream.js
+++ b/client/coral-embed-stream/src/components/Stream.js
@@ -303,11 +303,32 @@ class Stream extends React.Component {
}
Stream.propTypes = {
+ activeStreamTab: PropTypes.string,
+ data: PropTypes.object,
+ root: PropTypes.object,
+ activeReplyBox: PropTypes.string,
+ setActiveReplyBox: PropTypes.func,
+ commentClassNames: PropTypes.array,
+ setActiveStreamTab: PropTypes.func,
+ loadMoreComments: PropTypes.func,
+ postFlag: PropTypes.func,
+ postDontAgree: PropTypes.func,
+ deleteAction: PropTypes.func,
+ showSignInDialog: PropTypes.func,
+ loadNewReplies: PropTypes.func,
+ auth: PropTypes.object,
+ emit: PropTypes.func,
+ sortOrder: PropTypes.string,
+ sortBy: PropTypes.string,
+ loading: PropTypes.bool,
+ editName: PropTypes.func,
+ appendItemArray: PropTypes.func,
+ updateItem: PropTypes.func,
+ viewAllComments: PropTypes.func,
notify: PropTypes.func.isRequired,
postComment: PropTypes.func.isRequired,
-
- // edit a comment, passed (id, asset_id, { body })
- editComment: PropTypes.func
+ editComment: PropTypes.func,
+ userIsDegraged: PropTypes.bool,
};
export default Stream;
diff --git a/client/coral-embed-stream/src/containers/AutomaticAssetClosure.js b/client/coral-embed-stream/src/containers/AutomaticAssetClosure.js
index 8d336bb24..487e927a8 100644
--- a/client/coral-embed-stream/src/containers/AutomaticAssetClosure.js
+++ b/client/coral-embed-stream/src/containers/AutomaticAssetClosure.js
@@ -17,6 +17,7 @@ function getFragmentId(assetId) {
* AutomaticAssetClosure updates the graphql state of the provide asset
* to `isClosed=true` when passed `closedAt`.
*/
+
class AutomaticAssetClosure extends React.Component {
static contextTypes = {
client: PropTypes.object.isRequired,