aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-04 00:19:03 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-04 00:19:03 +0800
commit2c5fb11b374b36638997e1225f397f2dccb2b1e7 (patch)
tree75bf898fb215657ced5628bced22967e5f2fed2d
parent8dc8fd09031e1719f2da4e950a08e677d2752f56 (diff)
downloadtangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar.gz
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar.bz2
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar.lz
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar.xz
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.tar.zst
tangerine-wallet-browser-2c5fb11b374b36638997e1225f397f2dccb2b1e7.zip
Remove "Copy Contract Address" from token options
-rw-r--r--app/_locales/en/messages.json3
-rw-r--r--app/_locales/ht/messages.json3
-rw-r--r--app/_locales/ja/messages.json7
-rw-r--r--app/_locales/ko/messages.json3
-rw-r--r--ui/app/components/dropdowns/token-menu-dropdown.js9
5 files changed, 2 insertions, 23 deletions
diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json
index 89abb0e76..d7431fc2c 100644
--- a/app/_locales/en/messages.json
+++ b/app/_locales/en/messages.json
@@ -200,9 +200,6 @@
"copy": {
"message": "Copy"
},
- "copyContractAddress": {
- "message": "Copy Contract Address"
- },
"copyAddress": {
"message": "Copy address to clipboard"
},
diff --git a/app/_locales/ht/messages.json b/app/_locales/ht/messages.json
index 2b9c93d3f..50a0ec2bb 100644
--- a/app/_locales/ht/messages.json
+++ b/app/_locales/ht/messages.json
@@ -185,9 +185,6 @@
"copy": {
"message": "Kopye"
},
- "copyContractAddress": {
- "message": "Kopi Kontra Adrès"
- },
"copyAddress": {
"message": "Kopi adrès clipboard"
},
diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json
index c9d192139..2088ae270 100644
--- a/app/_locales/ja/messages.json
+++ b/app/_locales/ja/messages.json
@@ -16,7 +16,7 @@
},
"addCustomToken": {
"message": "カスタムトークンを追加"
- },
+ },
"addToken": {
"message": "トークンを追加"
},
@@ -122,9 +122,6 @@
"copy": {
"message": "コピー"
},
- "copyContractAddress": {
- "message": "コントラクトアドレスをコピー"
- },
"copyToClipboard": {
"message": "クリップボードへコピー"
},
@@ -164,7 +161,7 @@
},
"decimal": {
"message": "小数点桁数"
- },
+ },
"defaultNetwork": {
"message": "デフォルトのEther送受信ネットワークはメインネットです。"
},
diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json
index 30d032357..754aeca6e 100644
--- a/app/_locales/ko/messages.json
+++ b/app/_locales/ko/messages.json
@@ -146,9 +146,6 @@
"copy": {
"message": "복사"
},
- "copyContractAddress": {
- "message": "컨트랙트 주소 복사"
- },
"copyToClipboard": {
"message": "클립보드로 복사"
},
diff --git a/ui/app/components/dropdowns/token-menu-dropdown.js b/ui/app/components/dropdowns/token-menu-dropdown.js
index 5a794c7c1..8a072b1bc 100644
--- a/ui/app/components/dropdowns/token-menu-dropdown.js
+++ b/ui/app/components/dropdowns/token-menu-dropdown.js
@@ -5,7 +5,6 @@ const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../../actions')
const genAccountLink = require('etherscan-link').createAccountLink
-const copyToClipboard = require('copy-to-clipboard')
const { Menu, Item, CloseArea } = require('./components/menu')
TokenMenuDropdown.contextTypes = {
@@ -59,14 +58,6 @@ TokenMenuDropdown.prototype.render = function () {
h(Item, {
onClick: (e) => {
e.stopPropagation()
- copyToClipboard(this.props.token.address)
- this.props.onClose()
- },
- text: this.context.t('copyContractAddress'),
- }),
- h(Item, {
- onClick: (e) => {
- e.stopPropagation()
const url = genAccountLink(this.props.token.address, this.props.network)
global.platform.openWindow({ url })
this.props.onClose()