FE for the Staff Tag. Modifed typedfs graphql.

This commit is contained in:
gaba
2017-02-10 10:20:34 -08:00
parent 10937cf717
commit 71fcf9cd3f
4 changed files with 14 additions and 13 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ import LikeButton from 'coral-plugin-likes/LikeButton';
import styles from './Comment.css';
const getAction = (type, comment) => comment.actions.filter((a) => a.type === type)[0];
const isStaff = (tags) => !tags.every((t) => t.name !== 'STAFF') ;
class Comment extends React.Component {
@@ -101,7 +102,7 @@ class Comment extends React.Component {
<hr aria-hidden={true} />
<AuthorName
author={comment.user}/>
<TagLabel/>
<TagLabel isStaff={isStaff(comment.tags)}/>
<PubDate created_at={comment.created_at} />
<Content body={comment.body} />
<div className="commentActionsLeft">