Adds padding and resolves when is not staff.

This commit is contained in:
gaba
2017-02-10 13:33:57 -08:00
parent 498eb5eb91
commit 11ef12c14c
3 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -93,7 +93,7 @@ class Comment extends React.Component {
const like = getAction('LIKE', comment);
const flag = getAction('FLAG', comment);
return (
<div
className={parentId ? `reply ${styles.Reply}` : `comment ${styles.Comment}`}
@@ -102,7 +102,9 @@ class Comment extends React.Component {
<hr aria-hidden={true} />
<AuthorName
author={comment.user}/>
<TagLabel isStaff={isStaff(comment.tags)}/>
{ isStaff(comment.tags)
? <TagLabel isStaff={true}/>
: null }
<PubDate created_at={comment.created_at} />
<Content body={comment.body} />
<div className="commentActionsLeft">
+1 -1
View File
@@ -3,7 +3,7 @@ import React from 'react';
import styles from './styles.css';
const TagLabel = ({isStaff}) => <div className={`${styles.staff}`}>
{(isStaff) ? 'Staff' : ''}
{isStaff ? 'Staff' : ''}
</div>;
export default TagLabel;
+1
View File
@@ -3,4 +3,5 @@
color: white;
display: inline-block;
margin: 10px 10px;
padding: 5px 5px;
}