From 2c5fb11b374b36638997e1225f397f2dccb2b1e7 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 3 Oct 2018 13:49:03 -0230 Subject: Remove "Copy Contract Address" from token options --- app/_locales/en/messages.json | 3 --- app/_locales/ht/messages.json | 3 --- app/_locales/ja/messages.json | 7 ++----- app/_locales/ko/messages.json | 3 --- ui/app/components/dropdowns/token-menu-dropdown.js | 9 --------- 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 = { @@ -56,14 +55,6 @@ TokenMenuDropdown.prototype.render = function () { }, text: this.context.t('hideToken'), }), - 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() -- cgit v1.2.3