diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-15 21:49:31 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-15 21:49:31 +0200 |
commit | cf9e83e74dc5f91b0e13fbdb79848925e68809a3 (patch) | |
tree | e3b832cf0f5f6e4f4756f4e757babda22d9091e0 /webui/src/bug/Bug.js | |
parent | 1984d4343db770fc2c8e251a81f1ab997a4c4d5e (diff) | |
download | git-bug-cf9e83e74dc5f91b0e13fbdb79848925e68809a3.tar.gz |
webui: display label changes in the timeline + cleaning evrywhere
Diffstat (limited to 'webui/src/bug/Bug.js')
-rw-r--r-- | webui/src/bug/Bug.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/webui/src/bug/Bug.js b/webui/src/bug/Bug.js index 3847c755..34fc3ad4 100644 --- a/webui/src/bug/Bug.js +++ b/webui/src/bug/Bug.js @@ -1,9 +1,9 @@ import { withStyles } from '@material-ui/core/styles' -import Tooltip from '@material-ui/core/Tooltip/Tooltip' import Typography from '@material-ui/core/Typography/Typography' import gql from 'graphql-tag' -import * as moment from 'moment' import React from 'react' +import Author from '../Author' +import Date from '../Date' import TimelineQuery from './TimelineQuery' const styles = theme => ({ @@ -21,7 +21,8 @@ const styles = theme => ({ marginLeft: 15, }, container: { - display: 'flex' + display: 'flex', + marginBottom: 30 }, timeline: { width: '70%', @@ -47,11 +48,9 @@ const Bug = ({bug, classes}) => ( <span className={classes.id}>{bug.humanId}</span> <Typography color={'textSecondary'}> - <Tooltip title={bug.author.email}><span>{bug.author.name}</span></Tooltip> + <Author author={bug.author}/> <span> opened this bug </span> - <Tooltip title={moment(bug.createdAt).format('MMMM D, YYYY, h:mm a')}> - <span> {moment(bug.createdAt).fromNow()} </span> - </Tooltip> + <Date date={bug.createdAt} /> </Typography> </div> |