From bd8d291f974112793cf464c23a041f051ad5ae63 Mon Sep 17 00:00:00 2001 From: Sebastian Webster Date: Mon, 19 Sep 2022 11:09:07 +1200 Subject: [PATCH] add spacing between like count in image posts --- frontend/src/components/ImagePost.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/ImagePost.js b/frontend/src/components/ImagePost.js index 9591d76..7f8e9aa 100644 --- a/frontend/src/components/ImagePost.js +++ b/frontend/src/components/ImagePost.js @@ -181,6 +181,7 @@ const ImagePost = ({title, body, datePosted, image, previewImage, liked, publicI : <> +

{likeCount} {likeCount === 1 ? 'like' : 'likes'}

+

Posted {calculateDifferenceBetweenNowAndUTCMillisecondsTime(datePosted)}

{edited &&

Edited {calculateDifferenceBetweenNowAndUTCMillisecondsTime(dateEdited)}

}