From cf9e83e74dc5f91b0e13fbdb79848925e68809a3 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 15 Aug 2018 21:49:31 +0200 Subject: webui: display label changes in the timeline + cleaning evrywhere --- webui/src/bug/Message.js | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'webui/src/bug/Message.js') diff --git a/webui/src/bug/Message.js b/webui/src/bug/Message.js index 04c7dfab..612a9563 100644 --- a/webui/src/bug/Message.js +++ b/webui/src/bug/Message.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' import gql from 'graphql-tag' -import * as moment from 'moment' import React from 'react' +import Author from '../Author' +import Date from '../Date' const styles = theme => ({ header: { @@ -14,10 +14,6 @@ const styles = theme => ({ borderTopLeftRadius: 3, borderTopRightRadius: 3, }, - author: { - ...theme.typography.body2, - fontWeight: 'bold' - }, message: { borderLeft: '1px solid #d1d5da', borderRight: '1px solid #d1d5da', @@ -25,23 +21,20 @@ const styles = theme => ({ borderBottomLeftRadius: 3, borderBottomRightRadius: 3, backgroundColor: '#fff', - minHeight: 50 + minHeight: 50, + padding: 5, } }) -const Message = ({message, classes}) => ( +const Message = ({op, classes}) => (
- - {message.author.name} - + commented - - {moment(message.date).fromNow()} - +
- {message.message} + {op.message}
) -- cgit