mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
UX: Move Portfolio link to its own button (#17722)
This commit is contained in:
parent
0b296e88a5
commit
24e0a9030b
12
app/_locales/de/messages.json
generated
12
app/_locales/de/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask-Version"
|
"message": "MetaMask-Version"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "Beta-Portfolio-Seite"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Beta-Nutzungsbedingungen"
|
"message": "Beta-Nutzungsbedingungen"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON Datei",
|
"message": "JSON Datei",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "um ihre Token und NFTs über Konten und Netzwerke hinweg im Auge behalten zu können."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Beliebte benutzerdefinierte Netzwerke"
|
"message": "Beliebte benutzerdefinierte Netzwerke"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Portfolio-Seite"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Bevorzugter Ledger-Verbindungstyp",
|
"message": "Bevorzugter Ledger-Verbindungstyp",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Erneut versuchen"
|
"message": "Erneut versuchen"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Probieren Sie unser"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Erweiterte Token-Erkennung aktivieren"
|
"message": "Erweiterte Token-Erkennung aktivieren"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/el/messages.json
generated
12
app/_locales/el/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Δοκιμαστική έκδοση MetaMask"
|
"message": "Δοκιμαστική έκδοση MetaMask"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "δοκιμαστική ιστοσελίδα χαρτοφυλακίου"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Όροι Χρήσης της Δοκιμαστικής Έκδοσης"
|
"message": "Όροι Χρήσης της Δοκιμαστικής Έκδοσης"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Αρχείο JSON",
|
"message": "Αρχείο JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "για να παρακολουθείτε τα token και τα NFT σε όλους τους λογαριασμούς και τα δίκτυα."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Δημοφιλή προσαρμοσμένα δίκτυα"
|
"message": "Δημοφιλή προσαρμοσμένα δίκτυα"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Ιστότοπος χαρτοφυλακίου"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Προτιμώμενος Τύπος Σύνδεσης Ledger",
|
"message": "Προτιμώμενος Τύπος Σύνδεσης Ledger",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Δοκιμάστε ξανά"
|
"message": "Δοκιμάστε ξανά"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Δοκιμάστε το"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Ενεργοποιήστε την ενισχυμένη ανίχνευση token"
|
"message": "Ενεργοποιήστε την ενισχυμένη ανίχνευση token"
|
||||||
},
|
},
|
||||||
|
13
app/_locales/en/messages.json
generated
13
app/_locales/en/messages.json
generated
@ -483,9 +483,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask Beta Version"
|
"message": "MetaMask Beta Version"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "beta portfolio site"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Beta Terms of use"
|
"message": "Beta Terms of use"
|
||||||
},
|
},
|
||||||
@ -1772,9 +1769,6 @@
|
|||||||
"message": "JSON File",
|
"message": "JSON File",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "to keep tabs on your tokens and NFTs across accounts and networks."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2809,8 +2803,8 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Popular custom networks"
|
"message": "Popular custom networks"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
"portfolio": {
|
||||||
"message": "Portfolio site"
|
"message": "Portfolio"
|
||||||
},
|
},
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Preferred Ledger connection type",
|
"message": "Preferred Ledger connection type",
|
||||||
@ -4232,9 +4226,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Try again"
|
"message": "Try again"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Try our"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Turn on enhanced token detection"
|
"message": "Turn on enhanced token detection"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/es/messages.json
generated
12
app/_locales/es/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Versión Beta de MetaMask"
|
"message": "Versión Beta de MetaMask"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "sitio de portafolio beta"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Términos de uso de beta"
|
"message": "Términos de uso de beta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Archivo JSON",
|
"message": "Archivo JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "para controlar sus tokens y NFT en todas las cuentas y redes."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Redes populares personalizadas"
|
"message": "Redes populares personalizadas"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Sitio del portafolio"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Tipo de conexión a Ledger preferida",
|
"message": "Tipo de conexión a Ledger preferida",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Vuelva a intentarlo"
|
"message": "Vuelva a intentarlo"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Pruebe nuestro"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Activar la detección mejorada de tokens"
|
"message": "Activar la detección mejorada de tokens"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/fr/messages.json
generated
12
app/_locales/fr/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Version MetaMask Beta"
|
"message": "Version MetaMask Beta"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "site de portefeuille bêta"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Conditions d’utilisation de la version bêta"
|
"message": "Conditions d’utilisation de la version bêta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Fichier JSON",
|
"message": "Fichier JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "pour garder un œil sur vos jetons et vos NFT sur l’ensemble de vos comptes et réseaux."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Réseaux personnalisés populaires"
|
"message": "Réseaux personnalisés populaires"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Site du portefeuille"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Type de connexion préférée au Ledger",
|
"message": "Type de connexion préférée au Ledger",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Réessayez"
|
"message": "Réessayez"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Essayez notre"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Activer la détection améliorée des jetons"
|
"message": "Activer la détection améliorée des jetons"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/hi/messages.json
generated
12
app/_locales/hi/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask बीटा संस्करण"
|
"message": "MetaMask बीटा संस्करण"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "बीटा पोर्टफोलियो साइट"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "बीटा के उपयोग की शर्तें"
|
"message": "बीटा के उपयोग की शर्तें"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON फाइल",
|
"message": "JSON फाइल",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "खातों और नेटवर्क पर अपने टोकन और एनएफटी पर नज़र रखने के लिए।"
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "लोकप्रिय कस्टम नेटवर्क"
|
"message": "लोकप्रिय कस्टम नेटवर्क"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "पोर्टफोलियो साइट"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "वरीयता वाले लेजर कनेक्शन के प्रकार",
|
"message": "वरीयता वाले लेजर कनेक्शन के प्रकार",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "पुनः प्रयास करें"
|
"message": "पुनः प्रयास करें"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "हमारा आजमाएं"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "उन्नत टोकन डिटेक्शन चालू करें"
|
"message": "उन्नत टोकन डिटेक्शन चालू करें"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/id/messages.json
generated
12
app/_locales/id/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Versi Beta MetaMask"
|
"message": "Versi Beta MetaMask"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "situs portofolio beta"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Syarat penggunaan Beta"
|
"message": "Syarat penggunaan Beta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "File JSON",
|
"message": "File JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "untuk mengawasi token dan NFT Anda di seluruh akun dan jaringan."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Jaringan khusus populer"
|
"message": "Jaringan khusus populer"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Situs portofolio"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Jenis koneksi Ledger Pilihan",
|
"message": "Jenis koneksi Ledger Pilihan",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Coba lagi"
|
"message": "Coba lagi"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Cobalah"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Nyalakan deteksi token yang ditingkatkan"
|
"message": "Nyalakan deteksi token yang ditingkatkan"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/ja/messages.json
generated
12
app/_locales/ja/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMaskベータバージョン"
|
"message": "MetaMaskベータバージョン"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "ベータポートフォリオサイト"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "ベータ版利用規約"
|
"message": "ベータ版利用規約"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSONファイル",
|
"message": "JSONファイル",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "複数のアカウントやネットワークのトークンや NFT を監視するには。"
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "人気のカスタムネットワーク"
|
"message": "人気のカスタムネットワーク"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "ポートフォリオサイト"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "優先Ledger接続タイプ",
|
"message": "優先Ledger接続タイプ",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "再試行"
|
"message": "再試行"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "こちらをお試しください:"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "強化されたトークン検出をオンにする"
|
"message": "強化されたトークン検出をオンにする"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/ko/messages.json
generated
12
app/_locales/ko/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask 베타 버전"
|
"message": "MetaMask 베타 버전"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "베타 포트폴리오 사이트"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "베타 이용약관"
|
"message": "베타 이용약관"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON 파일",
|
"message": "JSON 파일",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "계정 및 네트워크 전반의 토큰과 NFT를 관리할 수 있습니다."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "인기 사용자 정의 네트워크"
|
"message": "인기 사용자 정의 네트워크"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "포트폴리오 사이트"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "선호하는 Ledger 연결 유형",
|
"message": "선호하는 Ledger 연결 유형",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "다시 시도"
|
"message": "다시 시도"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "다음을 체험하기:"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "향상된 토큰 감지 켜기"
|
"message": "향상된 토큰 감지 켜기"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/pt/messages.json
generated
12
app/_locales/pt/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Versão Beta da MetaMask"
|
"message": "Versão Beta da MetaMask"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "site de portfólio beta"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Termos de uso do Beta"
|
"message": "Termos de uso do Beta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Ficheiro JSON",
|
"message": "Ficheiro JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "para manter o controle dos seus tokens e NFTs em diferentes contas e redes."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Redes personalizadas populares"
|
"message": "Redes personalizadas populares"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Site do portfólio"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Tipo de conexão preferencial com o Ledger",
|
"message": "Tipo de conexão preferencial com o Ledger",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Tente novamente"
|
"message": "Tente novamente"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Experimente nosso"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Ativar detecção avançada de token"
|
"message": "Ativar detecção avançada de token"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/ru/messages.json
generated
12
app/_locales/ru/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Бета-версия MetaMask"
|
"message": "Бета-версия MetaMask"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "бета-версия сайта портфолио"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Условия использования бета-версии"
|
"message": "Условия использования бета-версии"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Файл JSON",
|
"message": "Файл JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "чтобы следить за вашими токенами и NFT на разных счетах и в разных сетях."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Популярные пользовательские сети"
|
"message": "Популярные пользовательские сети"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Сайт портфеля"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Предпочтительный тип подключения к леджеру",
|
"message": "Предпочтительный тип подключения к леджеру",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Попробуйте еще раз"
|
"message": "Попробуйте еще раз"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Попробуйте наше"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Включите расширенное обнаружение токенов"
|
"message": "Включите расширенное обнаружение токенов"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/tl/messages.json
generated
12
app/_locales/tl/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Bersyon ng MetaMask Beta"
|
"message": "Bersyon ng MetaMask Beta"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "site ng beta portfolio"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Mga tuntunin sa paggamit ng Beta"
|
"message": "Mga tuntunin sa paggamit ng Beta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON File",
|
"message": "JSON File",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "upang masubaybayan ang iyong mga token at NFT sa mga account at network."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Mga sikat na custom na network"
|
"message": "Mga sikat na custom na network"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Site ng portfolio"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Napiling Uri ng Ledger Connection",
|
"message": "Napiling Uri ng Ledger Connection",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Subukan ulit"
|
"message": "Subukan ulit"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Subukan ang aming"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "I-on ang pinahusay na pag-detect ng token"
|
"message": "I-on ang pinahusay na pag-detect ng token"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/tr/messages.json
generated
12
app/_locales/tr/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask Beta Sürümü"
|
"message": "MetaMask Beta Sürümü"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "beta portföy sitesi"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Beta Kullanım koşulları"
|
"message": "Beta Kullanım koşulları"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON Dosyası",
|
"message": "JSON Dosyası",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "hesaplar ve ağlar arasında tokenlerinizin ve NFT'lerinizin sekmelerini korumak için."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Ana İlke"
|
"message": "Ana İlke"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Popüler özel ağlar"
|
"message": "Popüler özel ağlar"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Portföy sitesi"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Tercih Edilen Kayıt Defteri bağlantı türü",
|
"message": "Tercih Edilen Kayıt Defteri bağlantı türü",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Tekrar dene"
|
"message": "Tekrar dene"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Dene:"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Gelişmiş token algılamayı açın"
|
"message": "Gelişmiş token algılamayı açın"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/vi/messages.json
generated
12
app/_locales/vi/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "Phiên Bản MetaMask Beta"
|
"message": "Phiên Bản MetaMask Beta"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "trang web danh mục đầu tư beta"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "Điều khoản Sử dụng Beta"
|
"message": "Điều khoản Sử dụng Beta"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "Tập tin JSON",
|
"message": "Tập tin JSON",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "để giữ lại thẻ trên token và NFT của bạn trong các tài khoản và mạng."
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "Mạng tùy chỉnh phổ biến"
|
"message": "Mạng tùy chỉnh phổ biến"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "Trang web danh mục đầu tư"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "Dạng kết nối Ledger ưu tiên",
|
"message": "Dạng kết nối Ledger ưu tiên",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "Thử lại"
|
"message": "Thử lại"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "Thử ngay"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "Bật phát hiện token nâng cao"
|
"message": "Bật phát hiện token nâng cao"
|
||||||
},
|
},
|
||||||
|
12
app/_locales/zh_CN/messages.json
generated
12
app/_locales/zh_CN/messages.json
generated
@ -479,9 +479,6 @@
|
|||||||
"betaMetamaskVersion": {
|
"betaMetamaskVersion": {
|
||||||
"message": "MetaMask 测试版本"
|
"message": "MetaMask 测试版本"
|
||||||
},
|
},
|
||||||
"betaPortfolioSite": {
|
|
||||||
"message": "投资组合网站测试版"
|
|
||||||
},
|
|
||||||
"betaTerms": {
|
"betaTerms": {
|
||||||
"message": "测试版使用条款"
|
"message": "测试版使用条款"
|
||||||
},
|
},
|
||||||
@ -1717,9 +1714,6 @@
|
|||||||
"message": "JSON 文件",
|
"message": "JSON 文件",
|
||||||
"description": "format for importing an account"
|
"description": "format for importing an account"
|
||||||
},
|
},
|
||||||
"keepTapsOnTokens": {
|
|
||||||
"message": "以记录您在各账户和各网络中的代币和NFT。"
|
|
||||||
},
|
|
||||||
"keystone": {
|
"keystone": {
|
||||||
"message": "Keystone"
|
"message": "Keystone"
|
||||||
},
|
},
|
||||||
@ -2715,9 +2709,6 @@
|
|||||||
"popularCustomNetworks": {
|
"popularCustomNetworks": {
|
||||||
"message": "流行自定义网络"
|
"message": "流行自定义网络"
|
||||||
},
|
},
|
||||||
"portfolioSite": {
|
|
||||||
"message": "投资组合网站"
|
|
||||||
},
|
|
||||||
"preferredLedgerConnectionType": {
|
"preferredLedgerConnectionType": {
|
||||||
"message": "首选 Ledger 连接类型",
|
"message": "首选 Ledger 连接类型",
|
||||||
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
"description": "A header for a dropdown in Settings > Advanced. Appears above the ledgerConnectionPreferenceDescription message"
|
||||||
@ -4090,9 +4081,6 @@
|
|||||||
"tryAgain": {
|
"tryAgain": {
|
||||||
"message": "重试"
|
"message": "重试"
|
||||||
},
|
},
|
||||||
"tryOur": {
|
|
||||||
"message": "试试我们的"
|
|
||||||
},
|
|
||||||
"turnOnTokenDetection": {
|
"turnOnTokenDetection": {
|
||||||
"message": "开启增强型代币检测"
|
"message": "开启增强型代币检测"
|
||||||
},
|
},
|
||||||
|
@ -40,7 +40,6 @@ export default class AppStateController extends EventEmitter {
|
|||||||
outdatedBrowserWarningLastShown: new Date().getTime(),
|
outdatedBrowserWarningLastShown: new Date().getTime(),
|
||||||
nftsDetectionNoticeDismissed: false,
|
nftsDetectionNoticeDismissed: false,
|
||||||
showTestnetMessageInDropdown: true,
|
showTestnetMessageInDropdown: true,
|
||||||
showPortfolioTooltip: true,
|
|
||||||
showBetaHeader: isBeta(),
|
showBetaHeader: isBeta(),
|
||||||
trezorModel: null,
|
trezorModel: null,
|
||||||
...initState,
|
...initState,
|
||||||
@ -302,15 +301,6 @@ export default class AppStateController extends EventEmitter {
|
|||||||
this.store.updateState({ showTestnetMessageInDropdown });
|
this.store.updateState({ showTestnetMessageInDropdown });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets whether the portfolio site tooltip should be shown on the home page
|
|
||||||
*
|
|
||||||
* @param showPortfolioTooltip
|
|
||||||
*/
|
|
||||||
setShowPortfolioTooltip(showPortfolioTooltip) {
|
|
||||||
this.store.updateState({ showPortfolioTooltip });
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether the beta notification heading on the home page
|
* Sets whether the beta notification heading on the home page
|
||||||
*
|
*
|
||||||
|
@ -1927,8 +1927,6 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
appStateController.setShowTestnetMessageInDropdown.bind(
|
appStateController.setShowTestnetMessageInDropdown.bind(
|
||||||
appStateController,
|
appStateController,
|
||||||
),
|
),
|
||||||
setShowPortfolioTooltip:
|
|
||||||
appStateController.setShowPortfolioTooltip.bind(appStateController),
|
|
||||||
setShowBetaHeader:
|
setShowBetaHeader:
|
||||||
appStateController.setShowBetaHeader.bind(appStateController),
|
appStateController.setShowBetaHeader.bind(appStateController),
|
||||||
updateNftDropDownState:
|
updateNftDropDownState:
|
||||||
|
27
app/scripts/migrations/079.js
Normal file
27
app/scripts/migrations/079.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { cloneDeep } from 'lodash';
|
||||||
|
|
||||||
|
const version = 79;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The portfolio tooltip has been moved to a button on the home screen so
|
||||||
|
* this property is no longer needed in state
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
version,
|
||||||
|
async migrate(originalVersionedData) {
|
||||||
|
const versionedData = cloneDeep(originalVersionedData);
|
||||||
|
versionedData.meta.version = version;
|
||||||
|
const state = versionedData.data;
|
||||||
|
const newState = transformState(state);
|
||||||
|
versionedData.data = newState;
|
||||||
|
return versionedData;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
function transformState(state) {
|
||||||
|
if (state?.metamask?.showPortfolioTooltip !== undefined) {
|
||||||
|
delete state.metamask.showPortfolioTooltip;
|
||||||
|
}
|
||||||
|
|
||||||
|
return state;
|
||||||
|
}
|
171
app/scripts/migrations/079.test.js
Normal file
171
app/scripts/migrations/079.test.js
Normal file
@ -0,0 +1,171 @@
|
|||||||
|
import migration79 from './079';
|
||||||
|
|
||||||
|
describe('migration #79', () => {
|
||||||
|
it('should update the version metadata', async () => {
|
||||||
|
const oldStorage = {
|
||||||
|
meta: {
|
||||||
|
version: 78,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const newStorage = await migration79.migrate(oldStorage);
|
||||||
|
expect(newStorage.meta).toStrictEqual({
|
||||||
|
version: 79,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should remove the "showPortfolioToolip" property', async () => {
|
||||||
|
const oldStorage = {
|
||||||
|
meta: {
|
||||||
|
version: 78,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
metamask: {
|
||||||
|
isInitialized: true,
|
||||||
|
isUnlocked: true,
|
||||||
|
isAccountMenuOpen: false,
|
||||||
|
identities: {
|
||||||
|
'0x00000': {
|
||||||
|
address: '0x00000',
|
||||||
|
lastSelected: 1675966229118,
|
||||||
|
name: 'Account 1',
|
||||||
|
},
|
||||||
|
'0x00001': {
|
||||||
|
address: '0x00001',
|
||||||
|
name: 'Account 2',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unapprovedTxs: {},
|
||||||
|
frequentRpcList: [],
|
||||||
|
addressBook: {},
|
||||||
|
popupGasPollTokens: [],
|
||||||
|
notificationGasPollTokens: [],
|
||||||
|
fullScreenGasPollTokens: [],
|
||||||
|
recoveryPhraseReminderHasBeenShown: false,
|
||||||
|
recoveryPhraseReminderLastShown: 1675966206345,
|
||||||
|
outdatedBrowserWarningLastShown: 1675966206345,
|
||||||
|
showTestnetMessageInDropdown: true,
|
||||||
|
showPortfolioTooltip: false,
|
||||||
|
showBetaHeader: false,
|
||||||
|
trezorModel: null,
|
||||||
|
qrHardware: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const newStorage = await migration79.migrate(oldStorage);
|
||||||
|
expect(newStorage).toStrictEqual({
|
||||||
|
meta: {
|
||||||
|
version: 79,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
metamask: {
|
||||||
|
isInitialized: true,
|
||||||
|
isUnlocked: true,
|
||||||
|
isAccountMenuOpen: false,
|
||||||
|
identities: {
|
||||||
|
'0x00000': {
|
||||||
|
address: '0x00000',
|
||||||
|
lastSelected: 1675966229118,
|
||||||
|
name: 'Account 1',
|
||||||
|
},
|
||||||
|
'0x00001': {
|
||||||
|
address: '0x00001',
|
||||||
|
name: 'Account 2',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unapprovedTxs: {},
|
||||||
|
frequentRpcList: [],
|
||||||
|
addressBook: {},
|
||||||
|
popupGasPollTokens: [],
|
||||||
|
notificationGasPollTokens: [],
|
||||||
|
fullScreenGasPollTokens: [],
|
||||||
|
recoveryPhraseReminderHasBeenShown: false,
|
||||||
|
recoveryPhraseReminderLastShown: 1675966206345,
|
||||||
|
outdatedBrowserWarningLastShown: 1675966206345,
|
||||||
|
showTestnetMessageInDropdown: true,
|
||||||
|
showBetaHeader: false,
|
||||||
|
trezorModel: null,
|
||||||
|
qrHardware: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should make no changes if "showPortfolioToolip" never existed', async () => {
|
||||||
|
const oldStorage = {
|
||||||
|
meta: {
|
||||||
|
version: 78,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
metamask: {
|
||||||
|
isInitialized: true,
|
||||||
|
isUnlocked: true,
|
||||||
|
isAccountMenuOpen: false,
|
||||||
|
identities: {
|
||||||
|
'0x00000': {
|
||||||
|
address: '0x00000',
|
||||||
|
lastSelected: 1675966229118,
|
||||||
|
name: 'Account 1',
|
||||||
|
},
|
||||||
|
'0x00001': {
|
||||||
|
address: '0x00001',
|
||||||
|
name: 'Account 2',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unapprovedTxs: {},
|
||||||
|
frequentRpcList: [],
|
||||||
|
addressBook: {},
|
||||||
|
popupGasPollTokens: [],
|
||||||
|
notificationGasPollTokens: [],
|
||||||
|
fullScreenGasPollTokens: [],
|
||||||
|
recoveryPhraseReminderHasBeenShown: false,
|
||||||
|
recoveryPhraseReminderLastShown: 1675966206345,
|
||||||
|
outdatedBrowserWarningLastShown: 1675966206345,
|
||||||
|
showTestnetMessageInDropdown: true,
|
||||||
|
showBetaHeader: false,
|
||||||
|
trezorModel: null,
|
||||||
|
qrHardware: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const newStorage = await migration79.migrate(oldStorage);
|
||||||
|
expect(newStorage).toStrictEqual({
|
||||||
|
meta: {
|
||||||
|
version: 79,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
metamask: {
|
||||||
|
isInitialized: true,
|
||||||
|
isUnlocked: true,
|
||||||
|
isAccountMenuOpen: false,
|
||||||
|
identities: {
|
||||||
|
'0x00000': {
|
||||||
|
address: '0x00000',
|
||||||
|
lastSelected: 1675966229118,
|
||||||
|
name: 'Account 1',
|
||||||
|
},
|
||||||
|
'0x00001': {
|
||||||
|
address: '0x00001',
|
||||||
|
name: 'Account 2',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unapprovedTxs: {},
|
||||||
|
frequentRpcList: [],
|
||||||
|
addressBook: {},
|
||||||
|
popupGasPollTokens: [],
|
||||||
|
notificationGasPollTokens: [],
|
||||||
|
fullScreenGasPollTokens: [],
|
||||||
|
recoveryPhraseReminderHasBeenShown: false,
|
||||||
|
recoveryPhraseReminderLastShown: 1675966206345,
|
||||||
|
outdatedBrowserWarningLastShown: 1675966206345,
|
||||||
|
showTestnetMessageInDropdown: true,
|
||||||
|
showBetaHeader: false,
|
||||||
|
trezorModel: null,
|
||||||
|
qrHardware: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
@ -82,6 +82,7 @@ import m075 from './075';
|
|||||||
import m076 from './076';
|
import m076 from './076';
|
||||||
import m077 from './077';
|
import m077 from './077';
|
||||||
import m078 from './078';
|
import m078 from './078';
|
||||||
|
import m079 from './079';
|
||||||
|
|
||||||
const migrations = [
|
const migrations = [
|
||||||
m002,
|
m002,
|
||||||
@ -161,6 +162,7 @@ const migrations = [
|
|||||||
m076,
|
m076,
|
||||||
m077,
|
m077,
|
||||||
m078,
|
m078,
|
||||||
|
m079,
|
||||||
];
|
];
|
||||||
|
|
||||||
export default migrations;
|
export default migrations;
|
||||||
|
@ -125,7 +125,6 @@ function defaultFixture() {
|
|||||||
recoveryPhraseReminderHasBeenShown: true,
|
recoveryPhraseReminderHasBeenShown: true,
|
||||||
recoveryPhraseReminderLastShown:
|
recoveryPhraseReminderLastShown:
|
||||||
'__FIXTURE_SUBSTITUTION__currentDateInMilliseconds',
|
'__FIXTURE_SUBSTITUTION__currentDateInMilliseconds',
|
||||||
showPortfolioTooltip: false,
|
|
||||||
showTestnetMessageInDropdown: true,
|
showTestnetMessageInDropdown: true,
|
||||||
trezorModel: null,
|
trezorModel: null,
|
||||||
usedNetworks: {
|
usedNetworks: {
|
||||||
@ -291,7 +290,6 @@ function onboardingFixture() {
|
|||||||
recoveryPhraseReminderHasBeenShown: false,
|
recoveryPhraseReminderHasBeenShown: false,
|
||||||
recoveryPhraseReminderLastShown:
|
recoveryPhraseReminderLastShown:
|
||||||
'__FIXTURE_SUBSTITUTION__currentDateInMilliseconds',
|
'__FIXTURE_SUBSTITUTION__currentDateInMilliseconds',
|
||||||
showPortfolioTooltip: true,
|
|
||||||
showTestnetMessageInDropdown: true,
|
showTestnetMessageInDropdown: true,
|
||||||
trezorModel: null,
|
trezorModel: null,
|
||||||
usedNetworks: {
|
usedNetworks: {
|
||||||
|
@ -27,7 +27,11 @@ import { setSwapsFromToken } from '../../../ducks/swaps/swaps';
|
|||||||
import IconButton from '../../ui/icon-button';
|
import IconButton from '../../ui/icon-button';
|
||||||
import { isHardwareKeyring } from '../../../helpers/utils/hardware';
|
import { isHardwareKeyring } from '../../../helpers/utils/hardware';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import { EVENT, EVENT_NAMES } from '../../../../shared/constants/metametrics';
|
import {
|
||||||
|
EVENT,
|
||||||
|
EVENT_NAMES,
|
||||||
|
CONTEXT_PROPS,
|
||||||
|
} from '../../../../shared/constants/metametrics';
|
||||||
import Spinner from '../../ui/spinner';
|
import Spinner from '../../ui/spinner';
|
||||||
import { startNewDraftTransaction } from '../../../ducks/send';
|
import { startNewDraftTransaction } from '../../../ducks/send';
|
||||||
import { AssetType } from '../../../../shared/constants/transaction';
|
import { AssetType } from '../../../../shared/constants/transaction';
|
||||||
@ -194,6 +198,35 @@ const EthOverview = ({ className }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<IconButton
|
||||||
|
className="eth-overview__button"
|
||||||
|
data-testid="home__portfolio-site"
|
||||||
|
Icon={
|
||||||
|
<Icon
|
||||||
|
name={ICON_NAMES.DIAGRAM}
|
||||||
|
color={IconColor.primaryInverse}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label={t('portfolio')}
|
||||||
|
onClick={() => {
|
||||||
|
const portfolioUrl = process.env.PORTFOLIO_URL;
|
||||||
|
global.platform.openTab({
|
||||||
|
url: `${portfolioUrl}?metamaskEntry=ext`,
|
||||||
|
});
|
||||||
|
trackEvent(
|
||||||
|
{
|
||||||
|
category: EVENT.CATEGORIES.HOME,
|
||||||
|
event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED,
|
||||||
|
properties: {
|
||||||
|
url: portfolioUrl,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE],
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
className={className}
|
className={className}
|
||||||
|
@ -82,9 +82,6 @@
|
|||||||
color: var(--color-text-alternative);
|
color: var(--color-text-alternative);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__button {
|
|
||||||
margin-right: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__button:last-of-type {
|
&__button:last-of-type {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
@ -128,10 +125,6 @@
|
|||||||
color: var(--color-text-alternative);
|
color: var(--color-text-alternative);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__button {
|
|
||||||
margin-right: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__button:last-of-type {
|
&__button:last-of-type {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,11 @@ import IconButton from '../../ui/icon-button';
|
|||||||
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
import { INVALID_ASSET_TYPE } from '../../../helpers/constants/error-keys';
|
||||||
import { showModal } from '../../../store/actions';
|
import { showModal } from '../../../store/actions';
|
||||||
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
import { MetaMetricsContext } from '../../../contexts/metametrics';
|
||||||
import { EVENT, EVENT_NAMES } from '../../../../shared/constants/metametrics';
|
import {
|
||||||
|
EVENT,
|
||||||
|
EVENT_NAMES,
|
||||||
|
CONTEXT_PROPS,
|
||||||
|
} from '../../../../shared/constants/metametrics';
|
||||||
import { AssetType } from '../../../../shared/constants/transaction';
|
import { AssetType } from '../../../../shared/constants/transaction';
|
||||||
import DepositPopover from '../deposit-popover';
|
import DepositPopover from '../deposit-popover';
|
||||||
|
|
||||||
@ -222,6 +226,35 @@ const TokenOverview = ({ className, token }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<IconButton
|
||||||
|
className="eth-overview__button"
|
||||||
|
Icon={
|
||||||
|
<Icon
|
||||||
|
name={ICON_NAMES.DIAGRAM}
|
||||||
|
color={IconColor.primaryInverse}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label={t('portfolio')}
|
||||||
|
data-testid="home__portfolio-site"
|
||||||
|
onClick={() => {
|
||||||
|
const portfolioUrl = process.env.PORTFOLIO_URL;
|
||||||
|
global.platform.openTab({
|
||||||
|
url: `${portfolioUrl}?metamaskEntry=ext`,
|
||||||
|
});
|
||||||
|
trackEvent(
|
||||||
|
{
|
||||||
|
category: EVENT.CATEGORIES.HOME,
|
||||||
|
event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED,
|
||||||
|
properties: {
|
||||||
|
url: portfolioUrl,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
contextPropsIntoEventProperties: [CONTEXT_PROPS.PAGE_TITLE],
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
className={className}
|
className={className}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
width: 73px;
|
||||||
|
|
||||||
@include H7;
|
@include H7;
|
||||||
|
|
||||||
|
@ -59,7 +59,6 @@ interface AppState {
|
|||||||
newNetworkAdded: string;
|
newNetworkAdded: string;
|
||||||
newNftAddedMessage: string;
|
newNftAddedMessage: string;
|
||||||
removeNftMessage: string;
|
removeNftMessage: string;
|
||||||
portfolioTooltipWasShownInThisSession: boolean;
|
|
||||||
sendInputCurrencySwitched: boolean;
|
sendInputCurrencySwitched: boolean;
|
||||||
newTokensImported: string;
|
newTokensImported: string;
|
||||||
newCustomNetworkAdded: RPCDefinition | Record<string, any>;
|
newCustomNetworkAdded: RPCDefinition | Record<string, any>;
|
||||||
@ -121,7 +120,6 @@ const initialState: AppState = {
|
|||||||
newNetworkAdded: '',
|
newNetworkAdded: '',
|
||||||
newNftAddedMessage: '',
|
newNftAddedMessage: '',
|
||||||
removeNftMessage: '',
|
removeNftMessage: '',
|
||||||
portfolioTooltipWasShownInThisSession: false,
|
|
||||||
sendInputCurrencySwitched: false,
|
sendInputCurrencySwitched: false,
|
||||||
newTokensImported: '',
|
newTokensImported: '',
|
||||||
newCustomNetworkAdded: {},
|
newCustomNetworkAdded: {},
|
||||||
@ -362,12 +360,6 @@ export default function reduceApp(
|
|||||||
removeNftMessage: action.payload,
|
removeNftMessage: action.payload,
|
||||||
};
|
};
|
||||||
|
|
||||||
case actionConstants.PORTFOLIO_TOOLTIP_WAS_SHOWN_IN_THIS_SESSION:
|
|
||||||
return {
|
|
||||||
...appState,
|
|
||||||
portfolioTooltipWasShownInThisSession: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
case actionConstants.SET_REQUEST_ACCOUNT_TABS:
|
case actionConstants.SET_REQUEST_ACCOUNT_TABS:
|
||||||
return {
|
return {
|
||||||
...appState,
|
...appState,
|
||||||
@ -444,12 +436,6 @@ export function hideWhatsNewPopup(): Action {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setPortfolioTooltipWasShownInThisSession(): Action {
|
|
||||||
return {
|
|
||||||
type: actionConstants.PORTFOLIO_TOOLTIP_WAS_SHOWN_IN_THIS_SESSION,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function toggleGasLoadingAnimation(
|
export function toggleGasLoadingAnimation(
|
||||||
payload: boolean,
|
payload: boolean,
|
||||||
): PayloadAction<boolean> {
|
): PayloadAction<boolean> {
|
||||||
@ -510,9 +496,3 @@ export function getLedgerWebHidConnectedStatus(
|
|||||||
export function getLedgerTransportStatus(state: AppSliceState): string | null {
|
export function getLedgerTransportStatus(state: AppSliceState): string | null {
|
||||||
return state.appState.ledgerTransportStatus;
|
return state.appState.ledgerTransportStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPortfolioTooltipWasShownInThisSession(
|
|
||||||
state: AppSliceState,
|
|
||||||
): boolean {
|
|
||||||
return state.appState.portfolioTooltipWasShownInThisSession;
|
|
||||||
}
|
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Redirect, Route } from 'react-router-dom';
|
import { Redirect, Route } from 'react-router-dom';
|
||||||
|
///: BEGIN:ONLY_INCLUDE_IN(main)
|
||||||
import {
|
import {
|
||||||
EVENT,
|
EVENT,
|
||||||
EVENT_NAMES,
|
EVENT_NAMES,
|
||||||
CONTEXT_PROPS,
|
CONTEXT_PROPS,
|
||||||
} from '../../../shared/constants/metametrics';
|
} from '../../../shared/constants/metametrics';
|
||||||
|
///: END:ONLY_INCLUDE_IN
|
||||||
import AssetList from '../../components/app/asset-list';
|
import AssetList from '../../components/app/asset-list';
|
||||||
import NftsTab from '../../components/app/nfts-tab';
|
import NftsTab from '../../components/app/nfts-tab';
|
||||||
import HomeNotification from '../../components/app/home-notification';
|
import HomeNotification from '../../components/app/home-notification';
|
||||||
@ -27,13 +29,9 @@ import {
|
|||||||
TypographyVariant,
|
TypographyVariant,
|
||||||
FONT_WEIGHT,
|
FONT_WEIGHT,
|
||||||
DISPLAY,
|
DISPLAY,
|
||||||
BLOCK_SIZES,
|
|
||||||
Size,
|
|
||||||
TextVariant,
|
|
||||||
TextColor,
|
TextColor,
|
||||||
} from '../../helpers/constants/design-system';
|
} from '../../helpers/constants/design-system';
|
||||||
import { SECOND } from '../../../shared/constants/time';
|
import { SECOND } from '../../../shared/constants/time';
|
||||||
import { ButtonLink, ICON_NAMES } from '../../components/component-library';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ASSET_ROUTE,
|
ASSET_ROUTE,
|
||||||
@ -51,7 +49,6 @@ import {
|
|||||||
ONBOARDING_SECURE_YOUR_WALLET_ROUTE,
|
ONBOARDING_SECURE_YOUR_WALLET_ROUTE,
|
||||||
} from '../../helpers/constants/routes';
|
} from '../../helpers/constants/routes';
|
||||||
import ZENDESK_URLS from '../../helpers/constants/zendesk-url';
|
import ZENDESK_URLS from '../../helpers/constants/zendesk-url';
|
||||||
import Tooltip from '../../components/ui/tooltip';
|
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(main)
|
///: BEGIN:ONLY_INCLUDE_IN(main)
|
||||||
import { SUPPORT_LINK } from '../../../shared/lib/ui-utils';
|
import { SUPPORT_LINK } from '../../../shared/lib/ui-utils';
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
@ -109,10 +106,6 @@ export default class Home extends PureComponent {
|
|||||||
infuraBlocked: PropTypes.bool.isRequired,
|
infuraBlocked: PropTypes.bool.isRequired,
|
||||||
showWhatsNewPopup: PropTypes.bool.isRequired,
|
showWhatsNewPopup: PropTypes.bool.isRequired,
|
||||||
hideWhatsNewPopup: PropTypes.func.isRequired,
|
hideWhatsNewPopup: PropTypes.func.isRequired,
|
||||||
showPortfolioTooltip: PropTypes.bool.isRequired,
|
|
||||||
hidePortfolioTooltip: PropTypes.func.isRequired,
|
|
||||||
portfolioTooltipWasShownInThisSession: PropTypes.bool.isRequired,
|
|
||||||
setPortfolioTooltipWasShownInThisSession: PropTypes.func.isRequired,
|
|
||||||
announcementsToShow: PropTypes.bool.isRequired,
|
announcementsToShow: PropTypes.bool.isRequired,
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||||
errorsToShow: PropTypes.object.isRequired,
|
errorsToShow: PropTypes.object.isRequired,
|
||||||
@ -216,12 +209,7 @@ export default class Home extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { setPortfolioTooltipWasShownInThisSession, showPortfolioTooltip } =
|
|
||||||
this.props;
|
|
||||||
this.checkStatusAndNavigate();
|
this.checkStatusAndNavigate();
|
||||||
if (showPortfolioTooltip) {
|
|
||||||
setPortfolioTooltipWasShownInThisSession();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static getDerivedStateFromProps(props) {
|
static getDerivedStateFromProps(props) {
|
||||||
@ -258,6 +246,7 @@ export default class Home extends PureComponent {
|
|||||||
|
|
||||||
renderNotifications() {
|
renderNotifications() {
|
||||||
const { t } = this.context;
|
const { t } = this.context;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
history,
|
history,
|
||||||
shouldShowSeedPhraseReminder,
|
shouldShowSeedPhraseReminder,
|
||||||
@ -618,14 +607,10 @@ export default class Home extends PureComponent {
|
|||||||
announcementsToShow,
|
announcementsToShow,
|
||||||
showWhatsNewPopup,
|
showWhatsNewPopup,
|
||||||
hideWhatsNewPopup,
|
hideWhatsNewPopup,
|
||||||
showPortfolioTooltip,
|
|
||||||
hidePortfolioTooltip,
|
|
||||||
portfolioTooltipWasShownInThisSession,
|
|
||||||
seedPhraseBackedUp,
|
seedPhraseBackedUp,
|
||||||
showRecoveryPhraseReminder,
|
showRecoveryPhraseReminder,
|
||||||
firstTimeFlowType,
|
firstTimeFlowType,
|
||||||
completedOnboarding,
|
completedOnboarding,
|
||||||
shouldShowSeedPhraseReminder,
|
|
||||||
onboardedInThisUISession,
|
onboardedInThisUISession,
|
||||||
newCustomNetworkAdded,
|
newCustomNetworkAdded,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
@ -641,8 +626,7 @@ export default class Home extends PureComponent {
|
|||||||
(!onboardedInThisUISession || firstTimeFlowType === 'import') &&
|
(!onboardedInThisUISession || firstTimeFlowType === 'import') &&
|
||||||
announcementsToShow &&
|
announcementsToShow &&
|
||||||
showWhatsNewPopup &&
|
showWhatsNewPopup &&
|
||||||
!showPortfolioTooltip &&
|
!process.env.IN_TEST &&
|
||||||
!portfolioTooltipWasShownInThisSession &&
|
|
||||||
Object.keys(newCustomNetworkAdded).length === 0;
|
Object.keys(newCustomNetworkAdded).length === 0;
|
||||||
return (
|
return (
|
||||||
<div className="main-container">
|
<div className="main-container">
|
||||||
@ -673,74 +657,6 @@ export default class Home extends PureComponent {
|
|||||||
defaultActiveTabKey={defaultHomeActiveTabName}
|
defaultActiveTabKey={defaultHomeActiveTabName}
|
||||||
onTabClick={onTabClick}
|
onTabClick={onTabClick}
|
||||||
tabsClassName="home__tabs"
|
tabsClassName="home__tabs"
|
||||||
subHeader={
|
|
||||||
<Tooltip
|
|
||||||
position="bottom"
|
|
||||||
open={
|
|
||||||
!process.env.IN_TEST &&
|
|
||||||
!shouldShowSeedPhraseReminder &&
|
|
||||||
!showRecoveryPhraseReminder &&
|
|
||||||
showPortfolioTooltip
|
|
||||||
}
|
|
||||||
interactive
|
|
||||||
theme="home__subheader-link--tooltip"
|
|
||||||
html={
|
|
||||||
<div>
|
|
||||||
<div className="home__subheader-link--tooltip-content-header">
|
|
||||||
<div className="home__subheader-link--tooltip-content-header-text">
|
|
||||||
{t('new')}
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
className="home__subheader-link--tooltip-content-header-button"
|
|
||||||
onClick={() => {
|
|
||||||
hidePortfolioTooltip();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<i className="fa fa-times" />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
{t('tryOur')}
|
|
||||||
<span className="home__subheader-link--tooltip-content-text-bold">
|
|
||||||
{t('betaPortfolioSite')}
|
|
||||||
</span>
|
|
||||||
{t('keepTapsOnTokens')}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<ButtonLink
|
|
||||||
className="home__subheader-link"
|
|
||||||
data-testid="home__portfolio-site"
|
|
||||||
onClick={async () => {
|
|
||||||
const portfolioUrl = process.env.PORTFOLIO_URL;
|
|
||||||
global.platform.openTab({
|
|
||||||
url: `${portfolioUrl}?metamaskEntry=ext`,
|
|
||||||
});
|
|
||||||
this.context.trackEvent(
|
|
||||||
{
|
|
||||||
category: EVENT.CATEGORIES.HOME,
|
|
||||||
event: EVENT_NAMES.PORTFOLIO_LINK_CLICKED,
|
|
||||||
properties: {
|
|
||||||
url: portfolioUrl,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
contextPropsIntoEventProperties: [
|
|
||||||
CONTEXT_PROPS.PAGE_TITLE,
|
|
||||||
],
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
iconName={ICON_NAMES.DIAGRAM}
|
|
||||||
width={BLOCK_SIZES.FULL}
|
|
||||||
size={Size.MD}
|
|
||||||
textProps={{ variant: TextVariant.bodySm }}
|
|
||||||
>
|
|
||||||
{t('portfolioSite')}
|
|
||||||
</ButtonLink>
|
|
||||||
</Tooltip>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<Tab
|
<Tab
|
||||||
activeClassName="home__tab--active"
|
activeClassName="home__tab--active"
|
||||||
@ -774,7 +690,7 @@ export default class Home extends PureComponent {
|
|||||||
activeClassName="home__tab--active"
|
activeClassName="home__tab--active"
|
||||||
className="home__tab"
|
className="home__tab"
|
||||||
data-testid="home__activity-tab"
|
data-testid="home__activity-tab"
|
||||||
name={this.context.t('activity')}
|
name={t('activity')}
|
||||||
tabKey="activity"
|
tabKey="activity"
|
||||||
>
|
>
|
||||||
<TransactionList />
|
<TransactionList />
|
||||||
|
@ -23,14 +23,12 @@ import {
|
|||||||
hasUnsignedQRHardwareMessage,
|
hasUnsignedQRHardwareMessage,
|
||||||
getNewNftAddedMessage,
|
getNewNftAddedMessage,
|
||||||
getNewTokensImported,
|
getNewTokensImported,
|
||||||
getShowPortfolioTooltip,
|
|
||||||
getShouldShowSeedPhraseReminder,
|
getShouldShowSeedPhraseReminder,
|
||||||
getRemoveNftMessage,
|
getRemoveNftMessage,
|
||||||
} from '../../selectors';
|
} from '../../selectors';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
closeNotificationPopup,
|
closeNotificationPopup,
|
||||||
hidePortfolioTooltip,
|
|
||||||
setConnectedStatusPopoverHasBeenShown,
|
setConnectedStatusPopoverHasBeenShown,
|
||||||
setDefaultHomeActiveTabName,
|
setDefaultHomeActiveTabName,
|
||||||
setWeb3ShimUsageAlertDismissed,
|
setWeb3ShimUsageAlertDismissed,
|
||||||
@ -50,8 +48,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
hideWhatsNewPopup,
|
hideWhatsNewPopup,
|
||||||
setNewCustomNetworkAdded,
|
setNewCustomNetworkAdded,
|
||||||
getPortfolioTooltipWasShownInThisSession,
|
|
||||||
setPortfolioTooltipWasShownInThisSession,
|
|
||||||
} from '../../ducks/app/app';
|
} from '../../ducks/app/app';
|
||||||
import { getWeb3ShimUsageAlertEnabledness } from '../../ducks/metamask/metamask';
|
import { getWeb3ShimUsageAlertEnabledness } from '../../ducks/metamask/metamask';
|
||||||
import { getSwapsFeatureIsLive } from '../../ducks/swaps/swaps';
|
import { getSwapsFeatureIsLive } from '../../ducks/swaps/swaps';
|
||||||
@ -142,9 +138,6 @@ const mapStateToProps = (state) => {
|
|||||||
shouldShowErrors: Object.entries(metamask.snapErrors || []).length > 0,
|
shouldShowErrors: Object.entries(metamask.snapErrors || []).length > 0,
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
showWhatsNewPopup: getShowWhatsNewPopup(state),
|
showWhatsNewPopup: getShowWhatsNewPopup(state),
|
||||||
showPortfolioTooltip: getShowPortfolioTooltip(state),
|
|
||||||
portfolioTooltipWasShownInThisSession:
|
|
||||||
getPortfolioTooltipWasShownInThisSession(state),
|
|
||||||
showRecoveryPhraseReminder: getShowRecoveryPhraseReminder(state),
|
showRecoveryPhraseReminder: getShowRecoveryPhraseReminder(state),
|
||||||
showOutdatedBrowserWarning:
|
showOutdatedBrowserWarning:
|
||||||
getIsBrowserDeprecated() && getShowOutdatedBrowserWarning(state),
|
getIsBrowserDeprecated() && getShowOutdatedBrowserWarning(state),
|
||||||
@ -172,7 +165,6 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
disableWeb3ShimUsageAlert: () =>
|
disableWeb3ShimUsageAlert: () =>
|
||||||
setAlertEnabledness(AlertTypes.web3ShimUsage, false),
|
setAlertEnabledness(AlertTypes.web3ShimUsage, false),
|
||||||
hideWhatsNewPopup: () => dispatch(hideWhatsNewPopup()),
|
hideWhatsNewPopup: () => dispatch(hideWhatsNewPopup()),
|
||||||
hidePortfolioTooltip,
|
|
||||||
setRecoveryPhraseReminderHasBeenShown: () =>
|
setRecoveryPhraseReminderHasBeenShown: () =>
|
||||||
dispatch(setRecoveryPhraseReminderHasBeenShown()),
|
dispatch(setRecoveryPhraseReminderHasBeenShown()),
|
||||||
setRecoveryPhraseReminderLastShown: (lastShown) =>
|
setRecoveryPhraseReminderLastShown: (lastShown) =>
|
||||||
@ -199,8 +191,6 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
setRpcTarget: (rpcUrl, chainId, ticker, nickname) => {
|
setRpcTarget: (rpcUrl, chainId, ticker, nickname) => {
|
||||||
dispatch(setRpcTarget(rpcUrl, chainId, ticker, nickname));
|
dispatch(setRpcTarget(rpcUrl, chainId, ticker, nickname));
|
||||||
},
|
},
|
||||||
setPortfolioTooltipWasShownInThisSession: () =>
|
|
||||||
dispatch(setPortfolioTooltipWasShownInThisSession()),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default compose(
|
export default compose(
|
||||||
|
@ -110,7 +110,6 @@ export default class Routes extends Component {
|
|||||||
isTestNet: PropTypes.bool,
|
isTestNet: PropTypes.bool,
|
||||||
currentChainId: PropTypes.string,
|
currentChainId: PropTypes.string,
|
||||||
shouldShowSeedPhraseReminder: PropTypes.bool,
|
shouldShowSeedPhraseReminder: PropTypes.bool,
|
||||||
portfolioTooltipIsBeingShown: PropTypes.bool,
|
|
||||||
forgottenPassword: PropTypes.bool,
|
forgottenPassword: PropTypes.bool,
|
||||||
isCurrentProviderCustom: PropTypes.bool,
|
isCurrentProviderCustom: PropTypes.bool,
|
||||||
completedOnboarding: PropTypes.bool,
|
completedOnboarding: PropTypes.bool,
|
||||||
@ -369,7 +368,6 @@ export default class Routes extends Component {
|
|||||||
isTestNet,
|
isTestNet,
|
||||||
currentChainId,
|
currentChainId,
|
||||||
shouldShowSeedPhraseReminder,
|
shouldShowSeedPhraseReminder,
|
||||||
portfolioTooltipIsBeingShown,
|
|
||||||
isCurrentProviderCustom,
|
isCurrentProviderCustom,
|
||||||
completedOnboarding,
|
completedOnboarding,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
@ -392,8 +390,7 @@ export default class Routes extends Component {
|
|||||||
const shouldShowNetworkDeprecationWarning =
|
const shouldShowNetworkDeprecationWarning =
|
||||||
windowType !== ENVIRONMENT_TYPE_NOTIFICATION &&
|
windowType !== ENVIRONMENT_TYPE_NOTIFICATION &&
|
||||||
isUnlocked &&
|
isUnlocked &&
|
||||||
!shouldShowSeedPhraseReminder &&
|
!shouldShowSeedPhraseReminder;
|
||||||
!portfolioTooltipIsBeingShown;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
getIsTestnet,
|
getIsTestnet,
|
||||||
getCurrentChainId,
|
getCurrentChainId,
|
||||||
getShouldShowSeedPhraseReminder,
|
getShouldShowSeedPhraseReminder,
|
||||||
getShowPortfolioTooltip,
|
|
||||||
isCurrentProviderCustom,
|
isCurrentProviderCustom,
|
||||||
} from '../../selectors';
|
} from '../../selectors';
|
||||||
import {
|
import {
|
||||||
@ -53,7 +52,6 @@ function mapStateToProps(state) {
|
|||||||
isTestNet: getIsTestnet(state),
|
isTestNet: getIsTestnet(state),
|
||||||
currentChainId: getCurrentChainId(state),
|
currentChainId: getCurrentChainId(state),
|
||||||
shouldShowSeedPhraseReminder: getShouldShowSeedPhraseReminder(state),
|
shouldShowSeedPhraseReminder: getShouldShowSeedPhraseReminder(state),
|
||||||
portfolioTooltipIsBeingShown: getShowPortfolioTooltip(state),
|
|
||||||
forgottenPassword: state.metamask.forgottenPassword,
|
forgottenPassword: state.metamask.forgottenPassword,
|
||||||
isCurrentProviderCustom: isCurrentProviderCustom(state),
|
isCurrentProviderCustom: isCurrentProviderCustom(state),
|
||||||
completedOnboarding,
|
completedOnboarding,
|
||||||
|
@ -1071,10 +1071,6 @@ export function getShowOutdatedBrowserWarning(state) {
|
|||||||
return currentTime - outdatedBrowserWarningLastShown >= DAY * 2;
|
return currentTime - outdatedBrowserWarningLastShown >= DAY * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getShowPortfolioTooltip(state) {
|
|
||||||
return state.metamask.showPortfolioTooltip;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getShowBetaHeader(state) {
|
export function getShowBetaHeader(state) {
|
||||||
return state.metamask.showBetaHeader;
|
return state.metamask.showBetaHeader;
|
||||||
}
|
}
|
||||||
|
@ -90,8 +90,6 @@ export const SET_OPEN_METAMASK_TAB_IDS = 'SET_OPEN_METAMASK_TAB_IDS';
|
|||||||
|
|
||||||
// Home Screen
|
// Home Screen
|
||||||
export const HIDE_WHATS_NEW_POPUP = 'HIDE_WHATS_NEW_POPUP';
|
export const HIDE_WHATS_NEW_POPUP = 'HIDE_WHATS_NEW_POPUP';
|
||||||
export const PORTFOLIO_TOOLTIP_WAS_SHOWN_IN_THIS_SESSION =
|
|
||||||
'PORTFOLIO_TOOLTIP_WAS_SHOWN_IN_THIS_SESSION';
|
|
||||||
export const TOGGLE_GAS_LOADING_ANIMATION = 'TOGGLE_GAS_LOADING_ANIMATION';
|
export const TOGGLE_GAS_LOADING_ANIMATION = 'TOGGLE_GAS_LOADING_ANIMATION';
|
||||||
|
|
||||||
// Smart Transactions
|
// Smart Transactions
|
||||||
|
@ -4488,10 +4488,6 @@ export function hideTestNetMessage() {
|
|||||||
return submitRequestToBackground('setShowTestnetMessageInDropdown', [false]);
|
return submitRequestToBackground('setShowTestnetMessageInDropdown', [false]);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hidePortfolioTooltip() {
|
|
||||||
return submitRequestToBackground('setShowPortfolioTooltip', [false]);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function hideBetaHeader() {
|
export function hideBetaHeader() {
|
||||||
return submitRequestToBackground('setShowBetaHeader', [false]);
|
return submitRequestToBackground('setShowBetaHeader', [false]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user