aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-19 07:23:12 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-19 07:23:12 +0800
commitbd9d89826c2bbd6e91a088040b7708de89658d1a (patch)
tree45a339a83cd561c30f997eddf2364ac54bbd6c48 /ui/lib
parent7389f9d0a0e1f798607ea8eea25583f8af854358 (diff)
downloadtangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar.gz
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar.bz2
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar.lz
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar.xz
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.tar.zst
tangerine-wallet-browser-bd9d89826c2bbd6e91a088040b7708de89658d1a.zip
Added `view more` button to transaction list
Visible at the end of the transaction list, or if no transactions are listed, displayed right after the `No Transactions` message.
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/account-link.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js
new file mode 100644
index 000000000..eb958e22d
--- /dev/null
+++ b/ui/lib/account-link.js
@@ -0,0 +1,18 @@
+module.exports = function(address, network) {
+ const net = parseInt(network)
+ let link
+
+ switch (net) {
+ case 1: // main net
+ link = `http://etherscan.io/address/${address}`
+ break
+ case 2: // morden test net
+ link = `http://testnet.etherscan.io/address/${address}`
+ break
+ default:
+ link = ''
+ break
+ }
+
+ return link
+}