From 892d6288e3ad5cc11d76f757f906f5de1f2d8d4a Mon Sep 17 00:00:00 2001 From: Asara Date: Sat, 1 Feb 2020 18:01:48 -0500 Subject: [PATCH] Some cleanup around comments --- src/components/Post.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Post.js b/src/components/Post.js index 1221596..de720b2 100644 --- a/src/components/Post.js +++ b/src/components/Post.js @@ -25,11 +25,13 @@ class Post extends React.Component { return comments.map(comment => { return (
-
-
- +

Comment by {comment.author}

+
+
+ +
-
+
); }); @@ -44,7 +46,7 @@ class Post extends React.Component {
-

{post.title}

+

{post.title}

By {post.author}

Posted {post.time_published}

@@ -54,6 +56,8 @@ class Post extends React.Component {
+

Comments:

+
{ this.renderComments(post.comments,post.id) }
)