From 19ac2765e2bf0c1d59c6fce435deaa2bc328ae93 Mon Sep 17 00:00:00 2001 From: James Morris Date: Wed, 6 Jul 2022 11:05:13 +0200 Subject: [PATCH] Added in a fake like along with dropdown together --- apps/comments-ui/src/components/Comment.js | 16 ++++++++++------ .../src/components/modals/AuthorContextMenu.js | 4 ++-- .../src/components/modals/CommentContextMenu.js | 2 +- apps/comments-ui/src/images/icons/more.svg | 6 +++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 372dc50438..79c62a8fd0 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -1,4 +1,5 @@ import {formatRelativeTime} from '../utils/helpers'; +import {ReactComponent as LikeIcon} from '../images/icons/like.svg'; import {ReactComponent as MoreIcon} from '../images/icons/more.svg'; import React from 'react'; import AppContext from '../AppContext'; @@ -28,21 +29,24 @@ class Comment extends React.Component { const html = {__html: comment.html}; return ( -
+
-
+

{comment.member.name}

{formatRelativeTime(comment.created_at)}
-
+

-
- - {this.state.isContextMenuOpen ? : null} +
+ +
+ + {this.state.isContextMenuOpen ? : null} +
diff --git a/apps/comments-ui/src/components/modals/AuthorContextMenu.js b/apps/comments-ui/src/components/modals/AuthorContextMenu.js index f06ae156ec..8e57c2ed96 100644 --- a/apps/comments-ui/src/components/modals/AuthorContextMenu.js +++ b/apps/comments-ui/src/components/modals/AuthorContextMenu.js @@ -17,14 +17,14 @@ class AuthorContextMenu extends React.Component { render() { return ( - <> +
- +
); } } diff --git a/apps/comments-ui/src/components/modals/CommentContextMenu.js b/apps/comments-ui/src/components/modals/CommentContextMenu.js index 52cf58c3d2..c1e419dcd2 100644 --- a/apps/comments-ui/src/components/modals/CommentContextMenu.js +++ b/apps/comments-ui/src/components/modals/CommentContextMenu.js @@ -24,7 +24,7 @@ class CommentContextMenu extends React.Component { const comment = this.props.comment; return ( -
+
{this.isAuthor ? : (this.isAdmin ? : )}
); diff --git a/apps/comments-ui/src/images/icons/more.svg b/apps/comments-ui/src/images/icons/more.svg index e4ae60578c..b23dc4ba8b 100644 --- a/apps/comments-ui/src/images/icons/more.svg +++ b/apps/comments-ui/src/images/icons/more.svg @@ -1,5 +1,5 @@ - - - + + +