diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2019-03-13 21:16:02 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2019-03-30 20:50:48 +0100 |
commit | 850b9db8744c47b3f42b877078678f62ce77e38d (patch) | |
tree | 9d0afada836b96c4efad0b6c1c19803e3b015dfa /webui/src/bug/Message.js | |
parent | 0a71e6d269e60f844a2d08069ca5bdee9b91b388 (diff) | |
download | git-bug-850b9db8744c47b3f42b877078678f62ce77e38d.tar.gz |
webui: Use Timeline API instead of raw operations
Diffstat (limited to 'webui/src/bug/Message.js')
-rw-r--r-- | webui/src/bug/Message.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/webui/src/bug/Message.js b/webui/src/bug/Message.js index a4e3eeb0..e858e003 100644 --- a/webui/src/bug/Message.js +++ b/webui/src/bug/Message.js @@ -32,7 +32,7 @@ const Message = ({ op, classes }) => ( <div className={classes.header}> <Author className={classes.author} author={op.author} bold /> <span> commented </span> - <Date date={op.date} /> + <Date date={op.createdAt} /> </div> <div className={classes.message}> <Typography>{op.message}</Typography> @@ -41,9 +41,9 @@ const Message = ({ op, classes }) => ( ); Message.createFragment = gql` - fragment Create on Operation { - ... on CreateOperation { - date + fragment Create on TimelineItem { + ... on CreateTimelineItem { + createdAt author { name email @@ -55,9 +55,9 @@ Message.createFragment = gql` `; Message.commentFragment = gql` - fragment Comment on Operation { - ... on AddCommentOperation { - date + fragment AddComment on TimelineItem { + ... on AddCommentTimelineItem { + createdAt author { name email |