Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Feed/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const Feed = (props) => {
<div className="card-body draftjs-post" dangerouslySetInnerHTML={{__html: html}} />
</div>
</Panel.Body>
{allowComments &&
<FeedComments
allowComments={ allowComments }
totalComments={totalComments}
hasMoreComments={hasMoreComments}
onLoadMoreComments={onLoadMoreComments}
Expand All @@ -49,7 +49,7 @@ const Feed = (props) => {
avatarUrl={currentUser.photoURL}
comments={comments}
isAddingComment={ isAddingComment }
/>}
/>
{children}
</ActionCard>
)
Expand Down
5 changes: 3 additions & 2 deletions src/components/Feed/FeedComments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FeedComments extends React.Component {
render() {
const {
comments, currentUser, totalComments, onLoadMoreComments, isLoadingComments, hasMoreComments, onAdd,
onChange, content, avatarUrl, isAddingComment
onChange, content, avatarUrl, isAddingComment, allowComments
} = this.props
let authorName = currentUser.firstName
if (authorName && currentUser.lastName) {
Expand Down Expand Up @@ -77,6 +77,7 @@ class FeedComments extends React.Component {
<div dangerouslySetInnerHTML={{__html: item.content}} />
</Comment>
)}
{allowComments &&
<AddComment
placeholder="Create a new comment..."
onAdd={onAdd}
Expand All @@ -85,7 +86,7 @@ class FeedComments extends React.Component {
avatarUrl={avatarUrl}
authorName={ authorName }
isAdding={ isAddingComment }
/>
/>}
</div>
)
}
Expand Down