1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Delete unused Copyable component (#7526)

* Delete unused Copyable component

* Delete unused copy localized message
This commit is contained in:
Whymarrh Whitby 2019-11-23 01:47:08 -03:30 committed by GitHub
parent 3203c75ee4
commit 0d6b5b627d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
57 changed files with 0 additions and 222 deletions

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "ተቀድቷል"
},
"copy": {
"message": "ቅዳ"
},
"copyAddress": {
"message": "አድራሻን ወደ ቅንጥብ ሰሌዳ ቅዳ"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "تم النسخ."
},
"copy": {
"message": "نسخ"
},
"copyAddress": {
"message": "نسخ العنوان إلى الحافظة"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Копирано!"
},
"copy": {
"message": "Копиране"
},
"copyAddress": {
"message": "Копирайте адреса в клипборда"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "কপি করা হয়েছে!"
},
"copy": {
"message": "অনুলিপি"
},
"copyAddress": {
"message": "ক্লিপবোর্ডে ঠিকানা কপি করুন"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "S'ha copiat!"
},
"copy": {
"message": "Copia"
},
"copyAddress": {
"message": "Copiar adreça al porta-retalls"
},

View File

@ -113,9 +113,6 @@
"copiedExclamation": {
"message": "Zkopírováno!"
},
"copy": {
"message": "Kopírovat"
},
"copyToClipboard": {
"message": "Kopírovat do schránky"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Kopieret!"
},
"copy": {
"message": "Kopiér"
},
"copyAddress": {
"message": "Kopier adresse til udklipsholder"
},

View File

@ -282,9 +282,6 @@
"copiedExclamation": {
"message": "Kopiert!"
},
"copy": {
"message": "Kopieren"
},
"copyAddress": {
"message": "Adresse in die Zwischenablage kopieren"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Έγινε αντιγραφή!"
},
"copy": {
"message": "Αντιγραφή"
},
"copyAddress": {
"message": "Αντιγράψτε τη διεύθυνση στο πρόχειρο"
},

View File

@ -357,9 +357,6 @@
"copiedExclamation": {
"message": "Copied!"
},
"copy": {
"message": "Copy"
},
"copyAddress": {
"message": "Copy address to clipboard"
},

View File

@ -251,9 +251,6 @@
"copiedExclamation": {
"message": "¡Copiado!"
},
"copy": {
"message": "Copiar"
},
"copyAddress": {
"message": "Copiar la dirección al portapapeles"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Copiado"
},
"copy": {
"message": "Copiar"
},
"copyAddress": {
"message": "Copiar la dirección al portapapeles"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Kopeeritud!"
},
"copy": {
"message": "Kopeeri"
},
"copyAddress": {
"message": "Kopeeri aadress lõikelauale"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "کپی شد!"
},
"copy": {
"message": "کپی"
},
"copyAddress": {
"message": "کاپی آدرس به کلیپ بورد"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Kopioitu"
},
"copy": {
"message": "Kopioi"
},
"copyAddress": {
"message": "Kopioi osoite leikepöydälle"
},

View File

@ -282,9 +282,6 @@
"copiedExclamation": {
"message": "Copié!"
},
"copy": {
"message": "Copier"
},
"copyAddress": {
"message": "Copier l'addresse dans le presse-papier"
},

View File

@ -42,9 +42,6 @@
"connect": {
"message": "કનેક્ટ કરો"
},
"copy": {
"message": "કૉપિ કરો"
},
"copyToClipboard": {
"message": "ક્લિપબોર્ડ પર કૉપિ કરો"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "הועתק!"
},
"copy": {
"message": "העתק"
},
"copyAddress": {
"message": "העתק כתובת ללוח"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "कॉपी की गई!"
},
"copy": {
"message": "कॉपी बनाएं"
},
"copyAddress": {
"message": "क्लिपबोर्ड पर पता कॉपी करें"
},

View File

@ -95,9 +95,6 @@
"copiedExclamation": {
"message": "कॉपी कर दिया गया!"
},
"copy": {
"message": "कॉपी / प्रतिलिपि कर्रे"
},
"copyToClipboard": {
"message": "क्लिपबोर्ड पर कॉपी करें"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Kopirano!"
},
"copy": {
"message": "Kopiraj"
},
"copyAddress": {
"message": "Kopiraj adresu u međuspremnik"
},

View File

@ -161,9 +161,6 @@
"copiedExclamation": {
"message": "Kopye!"
},
"copy": {
"message": "Kopye"
},
"copyAddress": {
"message": "Kopi adrès clipboard"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Kimásolva!"
},
"copy": {
"message": "Másolás"
},
"copyAddress": {
"message": "Másolja a címet a vágólapra"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Disalin!"
},
"copy": {
"message": "Salin"
},
"copyAddress": {
"message": "Salin alamat ke clipboard"
},

View File

@ -273,9 +273,6 @@
"copiedExclamation": {
"message": "Copiato!"
},
"copy": {
"message": "Copia"
},
"copyAddress": {
"message": "Copia l'indirizzo"
},

View File

@ -173,9 +173,6 @@
"copiedExclamation": {
"message": "コピー完了!"
},
"copy": {
"message": "コピー"
},
"copyToClipboard": {
"message": "クリップボードへコピー"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "ನಕಲಿಸಲಾಗಿದೆ!"
},
"copy": {
"message": "ನಕಲಿಸು"
},
"copyAddress": {
"message": "ವಿಳಾಸವನ್ನು ಕ್ಲಿಪ್‌ಬೋರ್ಡ್‌ಗೆ ನಕಲಿಸಿ"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "복사됨!"
},
"copy": {
"message": "복사"
},
"copyAddress": {
"message": "클립보드로 주소 복사"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Nukopijuota!"
},
"copy": {
"message": "Kopijuoti"
},
"copyAddress": {
"message": "Kopijuoti adresą į iškarpinę"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Nokopēts!"
},
"copy": {
"message": "Kopēt"
},
"copyAddress": {
"message": "Iekopēt adresi starpliktuvē"
},

View File

@ -42,9 +42,6 @@
"connect": {
"message": "കണക്‌റ്റുചെയ്യുക"
},
"copy": {
"message": "പകര്‍ത്തുക"
},
"copyToClipboard": {
"message": "ക്ലിപ്പ്ബോർഡിലേക്ക് പകർത്തുക"
},

View File

@ -42,9 +42,6 @@
"connect": {
"message": "कनेक्‍ट करा"
},
"copy": {
"message": "कॉपी करा"
},
"copyToClipboard": {
"message": "क्लिपबोर्डवर कॉपी करा"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Disalin!"
},
"copy": {
"message": "Salin"
},
"copyAddress": {
"message": "Salin alamat kepada papan klip"
},

View File

@ -92,9 +92,6 @@
"copiedExclamation": {
"message": "Gekopieerde!"
},
"copy": {
"message": "Kopiëren"
},
"copyToClipboard": {
"message": "Kopieer naar klembord"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Kopiert!"
},
"copy": {
"message": "Kopier"
},
"copyAddress": {
"message": "Kopier adresse til utklippstavlen "
},

View File

@ -80,9 +80,6 @@
"copiedExclamation": {
"message": "Kinopya!"
},
"copy": {
"message": "Kinopya"
},
"copyToClipboard": {
"message": "Kinopya sa clipboard"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Skopiowane!"
},
"copy": {
"message": "Skopiuj"
},
"copyAddress": {
"message": "Skopiuj adres do schowka"
},

View File

@ -95,9 +95,6 @@
"copiedExclamation": {
"message": "Copiado!"
},
"copy": {
"message": "Copiar"
},
"copyToClipboard": {
"message": "Copiar para o clipboard"
},

View File

@ -288,9 +288,6 @@
"copiedExclamation": {
"message": "Copiado!"
},
"copy": {
"message": "Copiar"
},
"copyAddress": {
"message": "Copiar endereço para a área de transferência"
},

View File

@ -48,9 +48,6 @@
"copiedExclamation": {
"message": "Copiado!"
},
"copy": {
"message": "Copiar"
},
"copyToClipboard": {
"message": "Copiar para a área de transferência"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Copiat!"
},
"copy": {
"message": "Copiază"
},
"copyAddress": {
"message": "Copiere adresă în clipboard"
},

View File

@ -116,9 +116,6 @@
"copiedExclamation": {
"message": "Скопировано!"
},
"copy": {
"message": "Скопировать"
},
"copyToClipboard": {
"message": "Скопировать в буфер обмена"
},

View File

@ -285,9 +285,6 @@
"copiedExclamation": {
"message": "Zkopírováno!"
},
"copy": {
"message": "Kopírovat"
},
"copyAddress": {
"message": "Kopírovať adresu do schránky"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Kopirano!"
},
"copy": {
"message": "Kopiraj"
},
"copyAddress": {
"message": "Kopiraj naslov v odložišče"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "Kopirano!"
},
"copy": {
"message": "Копирај"
},
"copyAddress": {
"message": "Kopirajte adresu u ostavu"
},

View File

@ -288,9 +288,6 @@
"copiedExclamation": {
"message": "Kopierades!"
},
"copy": {
"message": "Kopiera"
},
"copyAddress": {
"message": "Kopiera adress till urklipp"
},

View File

@ -288,9 +288,6 @@
"copiedExclamation": {
"message": "Imenakiliwa!"
},
"copy": {
"message": "Nakili"
},
"copyAddress": {
"message": "Nakili anwani kwenye ubao wa kunakilia"
},

View File

@ -104,9 +104,6 @@
"copiedExclamation": {
"message": "நகலெடுக்கப்பட்டன!"
},
"copy": {
"message": "நகலெடு"
},
"copyToClipboard": {
"message": "கிளிப்போர்டுக்கு நகலெடு"
},

View File

@ -42,9 +42,6 @@
"connect": {
"message": "కనెక్ట్ చేయండి"
},
"copy": {
"message": "కాపీ చెయ్యి"
},
"copyToClipboard": {
"message": "క్లిప్‌బోర్డ్‌కు కాపీ చేయి"
},

View File

@ -131,9 +131,6 @@
"copiedExclamation": {
"message": "คัดลอกแล้ว!"
},
"copy": {
"message": "คัดลอก"
},
"copyToClipboard": {
"message": "คัดลอกไปคลิปบอร์ด"
},

View File

@ -116,9 +116,6 @@
"copiedExclamation": {
"message": "Kopyalandı!"
},
"copy": {
"message": "Kopyala"
},
"copyToClipboard": {
"message": "Panoya kopyala"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "Скопійовано!"
},
"copy": {
"message": "Копіювати"
},
"copyAddress": {
"message": "Копіювати адресу в буфер обміну"
},

View File

@ -83,9 +83,6 @@
"copiedExclamation": {
"message": "Đã sao chép!"
},
"copy": {
"message": "Sao chép"
},
"copyToClipboard": {
"message": "Đã sao chép vào clipboard"
},

View File

@ -294,9 +294,6 @@
"copiedExclamation": {
"message": "已复制"
},
"copy": {
"message": "复制"
},
"copyAddress": {
"message": "将地址复制到剪贴板"
},

View File

@ -291,9 +291,6 @@
"copiedExclamation": {
"message": "已複製!"
},
"copy": {
"message": "複製"
},
"copyAddress": {
"message": "複製到剪貼簿"
},

View File

@ -1,53 +0,0 @@
const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const inherits = require('util').inherits
const Tooltip = require('../ui/tooltip')
const copyToClipboard = require('copy-to-clipboard')
const connect = require('react-redux').connect
Copyable.contextTypes = {
t: PropTypes.func,
}
module.exports = connect()(Copyable)
inherits(Copyable, Component)
function Copyable () {
Component.call(this)
this.state = {
copied: false,
}
}
Copyable.prototype.render = function () {
const props = this.props
const state = this.state
const { value, children } = props
const { copied } = state
return h(Tooltip, {
title: copied ? this.context.t('copiedExclamation') : this.context.t('copy'),
position: 'bottom',
}, h('span', {
style: {
cursor: 'pointer',
},
onClick: (event) => {
event.preventDefault()
event.stopPropagation()
copyToClipboard(value)
this.debounceRestore()
},
}, children))
}
Copyable.prototype.debounceRestore = function () {
this.setState({ copied: true })
clearTimeout(this.timeout)
this.timeout = setTimeout(() => {
this.setState({ copied: false })
}, 850)
}

View File

@ -205,10 +205,6 @@
}
}
&__copyable-address {
display: flex;
}
&__copy-icon {
padding-left: 4px;
}