Adds Tags to the graphql.

This commit is contained in:
gaba
2017-02-09 12:23:40 -08:00
parent f2341ca9d3
commit 1c26e64c71
4 changed files with 23 additions and 8 deletions
-7
View File
@@ -60,13 +60,6 @@ class Comment extends React.Component {
body: PropTypes.string.isRequired,
id: PropTypes.string.isRequired
})),
tags: PropTypes.arrayOf(
PropTypes.shape({
name: PropTypes.string,
assigned_by: PropTypes.string,
created_at: PropTypes.string
})
),
user: PropTypes.shape({
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired
@@ -3,6 +3,9 @@ fragment commentView on Comment {
body
created_at
status
tags {
name
}
user {
id
name: displayName
+1 -1
View File
@@ -11,7 +11,7 @@ export default class TagLabel extends Component {
<div
className={`${packagename}-text`}
className={`${styles.tagLabel}`}>
{tags && tags}
{tags}
</div>
);
}