diff options
author | Michael Muré <batolettre@gmail.com> | 2019-03-31 21:39:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 21:39:14 +0200 |
commit | dcf973867496273df0c2e8f59c5ee113a4c08bb1 (patch) | |
tree | 6f5cf130478dba3e11a7f964e29f35be0d04312f /webui/src/bug/LabelChange.js | |
parent | 9bc5543206ed7cba02c0bb39165c3c4db149b066 (diff) | |
parent | 22089b5e628f1356e517d24d0346a8ec2def97fc (diff) | |
download | git-bug-dcf973867496273df0c2e8f59c5ee113a4c08bb1.tar.gz |
Merge pull request #104 from MichaelMure/sandhose/webui-timeline
Use Timeline API instead of raw operations
Diffstat (limited to 'webui/src/bug/LabelChange.js')
-rw-r--r-- | webui/src/bug/LabelChange.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/webui/src/bug/LabelChange.js b/webui/src/bug/LabelChange.js index b1bed4a5..6301f35f 100644 --- a/webui/src/bug/LabelChange.js +++ b/webui/src/bug/LabelChange.js @@ -8,6 +8,10 @@ import Label from '../Label'; const styles = theme => ({ main: { ...theme.typography.body2, + marginLeft: theme.spacing.unit + 40, + }, + author: { + fontWeight: 'bold', }, }); @@ -15,7 +19,7 @@ const LabelChange = ({ op, classes }) => { const { added, removed } = op; return ( <div className={classes.main}> - <Author author={op.author} bold /> + <Author author={op.author} className={classes.author} /> {added.length > 0 && <span> added the </span>} {added.map((label, index) => ( <Label key={index} label={label} /> @@ -36,8 +40,8 @@ const LabelChange = ({ op, classes }) => { }; LabelChange.fragment = gql` - fragment LabelChange on Operation { - ... on LabelChangeOperation { + fragment LabelChange on TimelineItem { + ... on LabelChangeTimelineItem { date author { name |