Add roadmap management to Site settings (#123)

This commit is contained in:
Riccardo Graziosi
2022-06-12 15:22:06 +02:00
committed by GitHub
parent db674eaf6a
commit e2065b2c5e
31 changed files with 495 additions and 60 deletions

View File

@@ -81,7 +81,7 @@ const Comment = ({
</a>
{
isPowerUser ?
<React.Fragment>
<>
<Separator />
<a
onClick={() => handleToggleIsCommentUpdate(id, isPostUpdate)}
@@ -103,7 +103,7 @@ const Comment = ({
{I18n.t('common.buttons.delete')}
</a>
</React.Fragment>
</>
:
null
}

View File

@@ -36,7 +36,7 @@ const CommentList = ({
isPowerUser,
userEmail,
}: Props) => (
<React.Fragment>
<>
{comments.map((comment, i) => {
if (comment.parentId === parentId) {
return (
@@ -77,7 +77,7 @@ const CommentList = ({
);
} else return null;
})}
</React.Fragment>
</>
);
export default CommentList;

View File

@@ -41,11 +41,11 @@ const NewComment = ({
isPowerUser,
userEmail,
}: Props) => (
<React.Fragment>
<>
<div className="newCommentForm">
{
isLoggedIn ?
<React.Fragment>
<>
<div className="commentBodyForm">
<Gravatar email={userEmail} size={48} className="currentUserAvatar" />
<textarea
@@ -69,7 +69,7 @@ const NewComment = ({
:
null
}
</React.Fragment>
</>
:
<a href="/users/sign_in" className="loginInfo">
{I18n.t('post.new_comment.not_logged_in')}
@@ -78,7 +78,7 @@ const NewComment = ({
</div>
{ error ? <DangerText>{error}</DangerText> : null }
</React.Fragment>
</>
);
export default NewComment;