Skip to content

Commit

Permalink
Update Comments.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymanhki authored Apr 9, 2024
1 parent d29a437 commit b32c041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions epoch_frontend/src/pages/Comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ function Comments() {
</div>

{user && (<button className={`new-comment-button ${showNewCommentPopup ? 'rotate' : ''}`}
onClick={() => setShowNewCommentPopup(!showNewCommentPopup)}>{
`${showNewCommentPopup ? '+' : <ForumOutlinedIcon></ForumOutlinedIcon>}`
}</button>)}
onClick={() => setShowNewCommentPopup(!showNewCommentPopup)}>+</button>)}

{comments && comments.length === 0 &&
<div className={"no-comments"}>No comments yet</div>}
Expand Down

0 comments on commit b32c041

Please sign in to comment.