From 3d9cb5bac160bc85951cda86a74b9902c0c4d5ed Mon Sep 17 00:00:00 2001 From: SandraBergstrom Date: Wed, 28 Jun 2023 10:07:57 +0000 Subject: [PATCH] #23 Pass props to showEditForm in comment.js --- src/pages/comments/Comment.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pages/comments/Comment.js b/src/pages/comments/Comment.js index 1e4a195..0185dd3 100644 --- a/src/pages/comments/Comment.js +++ b/src/pages/comments/Comment.js @@ -58,7 +58,18 @@ const Comment = (props) => { {owner} {updated_at} - {showEditForm ? :

{content}

} + {showEditForm ? ( + + ) : ( +

{content}

+ )} {is_owner && !showEditForm && (