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": { "copiedExclamation": {
"message": "ተቀድቷል" "message": "ተቀድቷል"
}, },
"copy": {
"message": "ቅዳ"
},
"copyAddress": { "copyAddress": {
"message": "አድራሻን ወደ ቅንጥብ ሰሌዳ ቅዳ" "message": "አድራሻን ወደ ቅንጥብ ሰሌዳ ቅዳ"
}, },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -291,9 +291,6 @@
"copiedExclamation": { "copiedExclamation": {
"message": "已複製!" "message": "已複製!"
}, },
"copy": {
"message": "複製"
},
"copyAddress": { "copyAddress": {
"message": "複製到剪貼簿" "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 { &__copy-icon {
padding-left: 4px; padding-left: 4px;
} }