From 736d07fbd0e52497adb1143bf5fd2b57ac12ae0e Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Tue, 5 Jul 2022 15:56:44 +0200 Subject: [PATCH] Added some dark styles --- apps/comments-ui/src/components/Comment.js | 4 ++-- apps/comments-ui/src/components/CommentsBox.js | 8 ++++---- apps/comments-ui/src/components/Pagination.js | 2 +- apps/comments-ui/src/components/TotalComments.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 2c0899f51b..f3c8de29b3 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -11,13 +11,13 @@ function Comment(props) {
-

{comment.member.name}

+

{comment.member.name}

{/*
{comment.member.bio}
*/}
{formatRelativeTime(comment.created_at)}
-
+

{comment.html}

diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index dae77f0ac6..72cf4fe9b0 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -46,11 +46,11 @@ class CommentsBox extends React.Component { const containerClass = this.darkMode() ? 'dark' : ''; return ( -
-
-

Members discussion

+
+ {/*
+

Members discussion

-
+
*/}
{comments} diff --git a/apps/comments-ui/src/components/Pagination.js b/apps/comments-ui/src/components/Pagination.js index 70f519c1cc..9042b90bfd 100644 --- a/apps/comments-ui/src/components/Pagination.js +++ b/apps/comments-ui/src/components/Pagination.js @@ -29,7 +29,7 @@ class Pagination extends React.Component { } return ( - ); diff --git a/apps/comments-ui/src/components/TotalComments.js b/apps/comments-ui/src/components/TotalComments.js index 741d399c25..a4746fe6a2 100644 --- a/apps/comments-ui/src/components/TotalComments.js +++ b/apps/comments-ui/src/components/TotalComments.js @@ -10,7 +10,7 @@ class TotalComments extends React.Component { } return ( -
+

{this.context.pagination.total} {this.context.pagination.total === 1 ? 'comment' : 'comments'}

);