diff --git a/app/javascript/components/Comment.js b/app/javascript/components/Comment.js index dc1a2084c4..15761c843a 100644 --- a/app/javascript/components/Comment.js +++ b/app/javascript/components/Comment.js @@ -92,7 +92,16 @@ Comment.propTypes = { PropTypes.array, PropTypes.element ]), - comment: PropTypes.object.isRequired, + comment: PropTypes.shape({ + authorId: PropTypes.number.isRequired, + authorPicUrl: PropTypes.string, + authorPicFilename: PropTypes.string, + authorUsername: PropTypes.string.isRequired, + commentId: PropTypes.number.isRequired, + commentName: PropTypes.string, + htmlCommentText: PropTypes.string.isRequired, + timeCreatedString: PropTypes.string.isRequired +}).isRequired, deleteButton: PropTypes.element.isRequired, editCommentForm: PropTypes.element.isRequired, isEditFormVisible: PropTypes.bool.isRequired,