diff options
Diffstat (limited to 'webui/src/Date.js')
-rw-r--r-- | webui/src/Date.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webui/src/Date.js b/webui/src/Date.js index b20fd274..46741924 100644 --- a/webui/src/Date.js +++ b/webui/src/Date.js @@ -1,11 +1,11 @@ -import Tooltip from '@material-ui/core/Tooltip/Tooltip' -import * as moment from 'moment' -import React from 'react' +import Tooltip from '@material-ui/core/Tooltip/Tooltip'; +import * as moment from 'moment'; +import React from 'react'; -const Date = ({date}) => ( +const Date = ({ date }) => ( <Tooltip title={moment(date).format('MMMM D, YYYY, h:mm a')}> <span> {moment(date).fromNow()} </span> </Tooltip> -) +); -export default Date +export default Date; |