From 88d2fc4bd273de6835ce6731c4e8903c20a6ba8d Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 7 Jul 2022 12:02:53 +0200 Subject: [PATCH] Some basic styling for the sign in box --- apps/comments-ui/src/components/Comment.js | 2 +- apps/comments-ui/src/components/More.js | 2 +- apps/comments-ui/src/components/NotSignedInBox.js | 6 +++--- apps/comments-ui/src/components/Reply.js | 12 +++++++----- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 01cc2868c3..41ebf84981 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -34,7 +34,7 @@ const Comment = (props) => { ); } else { return ( -
+
diff --git a/apps/comments-ui/src/components/More.js b/apps/comments-ui/src/components/More.js index 973970bd92..058e32440d 100644 --- a/apps/comments-ui/src/components/More.js +++ b/apps/comments-ui/src/components/More.js @@ -1,7 +1,7 @@ -import {ReactComponent as MoreIcon} from '../images/icons/more.svg'; import React, {useContext, useState} from 'react'; import CommentContextMenu from './modals/CommentContextMenu'; import AppContext from '../AppContext'; +import {ReactComponent as MoreIcon} from '../images/icons/more.svg'; const More = (props) => { const [isContextMenuOpen, setIsContextMenuOpen] = useState(false); diff --git a/apps/comments-ui/src/components/NotSignedInBox.js b/apps/comments-ui/src/components/NotSignedInBox.js index c13c5022f7..933da37bfe 100644 --- a/apps/comments-ui/src/components/NotSignedInBox.js +++ b/apps/comments-ui/src/components/NotSignedInBox.js @@ -1,8 +1,8 @@ function NotSignedInBox() { return ( -
-

You are not signed in

-

Log in to place a comment.

+
+

Want to join the discussion?

+ Sign in to comment
); } diff --git a/apps/comments-ui/src/components/Reply.js b/apps/comments-ui/src/components/Reply.js index 56baa45a67..3f11dcf497 100644 --- a/apps/comments-ui/src/components/Reply.js +++ b/apps/comments-ui/src/components/Reply.js @@ -1,12 +1,14 @@ -import React from 'react'; +import React, {useContext} from 'react'; +import AppContext from '../AppContext'; import {ReactComponent as ReplyIcon} from '../images/icons/reply.svg'; function Reply(props) { - return ( - - ); + ) : null; } export default Reply;