aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/shift-list-item.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-12-14 04:48:15 +0800
committerGitHub <noreply@github.com>2018-12-14 04:48:15 +0800
commit435fdae84ac49b1366b8737215d97bd82002dccf (patch)
tree5fd6e5b60c36b66c98385c5e7aafe21daabc4849 /ui/app/components/shift-list-item.js
parentb5d6452454de8d12340e5902914fba9f420865dc (diff)
downloadtangerine-wallet-browser-435fdae84ac49b1366b8737215d97bd82002dccf.tar.gz
tangerine-wallet-browser-435fdae84ac49b1366b8737215d97bd82002dccf.tar.zst
tangerine-wallet-browser-435fdae84ac49b1366b8737215d97bd82002dccf.zip
Fix displayed time and date in the activity log. Remove vreme library, add luxon library. (#5932)
Diffstat (limited to 'ui/app/components/shift-list-item.js')
-rw-r--r--ui/app/components/shift-list-item.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/app/components/shift-list-item.js b/ui/app/components/shift-list-item.js
index 0461b615a..2d08bbddc 100644
--- a/ui/app/components/shift-list-item.js
+++ b/ui/app/components/shift-list-item.js
@@ -3,10 +3,9 @@ const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const connect = require('react-redux').connect
-const vreme = new (require('vreme'))()
const explorerLink = require('etherscan-link').createExplorerLink
const actions = require('../actions')
-const addressSummary = require('../util').addressSummary
+const { formatDate, addressSummary } = require('../util')
const CopyButton = require('./copyButton')
const EthBalance = require('./eth-balance')
@@ -67,10 +66,6 @@ ShiftListItem.prototype.render = function () {
])
}
-function formatDate (date) {
- return vreme.format(new Date(date), 'March 16 2014 14:30')
-}
-
ShiftListItem.prototype.renderUtilComponents = function () {
var props = this.props
const { conversionRate, currentCurrency } = props