1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Removed advanced gas controls from the settings (#18138)

This commit is contained in:
aleksandar-mihajlovic 2023-03-27 08:45:17 +02:00 committed by GitHub
parent 4179ce634c
commit 0f1b86a037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
53 changed files with 10 additions and 348 deletions

View File

@ -663,12 +663,6 @@
"settings": {
"message": "ቅንብሮች"
},
"showAdvancedGasInline": {
"message": "የላቁ የነዳጅ ቁጥጥሮች"
},
"showAdvancedGasInlineDescription": {
"message": "በላክ እና አረጋግጥ ማያዎች ላይ የነዳጅ ዋጋን ለማሳየትና ቁጥጥሮችን ለመገደብ ይህን ይምረጡ።"
},
"showFiatConversionInTestnets": {
"message": "ልወጣን በ Testnets ላይ አሳይ"
},

View File

@ -675,12 +675,6 @@
"settings": {
"message": "الإعدادات"
},
"showAdvancedGasInline": {
"message": "أدوات التحكم المتقدمة للغاز"
},
"showAdvancedGasInlineDescription": {
"message": "حدد هذا لإظهار سعر عملة جاس والحد من الضوابط مباشرة على شاشات الإرسال والتأكيد."
},
"showFiatConversionInTestnets": {
"message": "عرض التحويل على Testnets"
},

View File

@ -674,12 +674,6 @@
"settings": {
"message": "Настройки"
},
"showAdvancedGasInline": {
"message": "Разширено управление на газа"
},
"showAdvancedGasInlineDescription": {
"message": "Изберете това, за да покажете цените на газа и ограничите контрола директно на екраните за изпращане и потвърждение."
},
"showFiatConversionInTestnets": {
"message": "Показване на преобразуването на Testnets"
},

View File

@ -672,12 +672,6 @@
"settings": {
"message": "সেটিংস"
},
"showAdvancedGasInline": {
"message": "উন্নত গ্যাস নিয়ন্ত্রণসমূহ"
},
"showAdvancedGasInlineDescription": {
"message": "গ্যাসের মূল্য দেখাতে এটি নির্বাচন করুন এবং পাঠানোর এবং নিশ্চিতকরণের স্ক্রিনগুলিতে নিয়ন্ত্রণগুলি সরাসরি সীমিত করুন।"
},
"showFiatConversionInTestnets": {
"message": "Testnets এ রূপান্তর দেখান"
},

View File

@ -656,12 +656,6 @@
"settings": {
"message": "Configuració"
},
"showAdvancedGasInline": {
"message": "Controls de gas avançats"
},
"showAdvancedGasInlineDescription": {
"message": "Selecciona això per a mostrar el preu del gas i els controls de límit directament a les pantalles d'enviament i confirmació."
},
"showFiatConversionInTestnets": {
"message": "Mostra Conversió a Testnets"
},

View File

@ -656,12 +656,6 @@
"settings": {
"message": "Indstillinger "
},
"showAdvancedGasInline": {
"message": "Avanceret Gas-styring"
},
"showAdvancedGasInlineDescription": {
"message": "Vælg dette for at vise brændstofprisen og begræns styringen direkte på afsendelses- og bekræftelseskærmene."
},
"showFiatConversionInTestnets": {
"message": "Vis konvertering på testnet"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Zeigen"
},
"showAdvancedGasInline": {
"message": "Erweiterte Gaskontrollen"
},
"showAdvancedGasInlineDescription": {
"message": "Wählen Sie dies aus, um den Gaspreis und die Limitkontrollen direkt auf den Senden- und Bestätigen-Bildschirmen anzuzeigen."
},
"showFiatConversionInTestnets": {
"message": "Umwandlung auf Testnets anzeigen"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Εμφάνιση"
},
"showAdvancedGasInline": {
"message": "Προωθημένος έλεγχος gas"
},
"showAdvancedGasInlineDescription": {
"message": "Επιλέξτε αυτό για να εμφανίσετε τις τιμές αερίου και να περιορίσετε τα στοιχεία ελέγχου απευθείας στις οθόνες αποστολής και επιβεβαίωσης."
},
"showFiatConversionInTestnets": {
"message": "Εμφάνιση Μετατροπής σε Δοκιμαστικά Δίκτυα"
},

View File

@ -3423,12 +3423,6 @@
"show": {
"message": "Show"
},
"showAdvancedGasInline": {
"message": "Advanced gas controls"
},
"showAdvancedGasInlineDescription": {
"message": "Select this to show gas price and limit controls directly on the send and confirm screens."
},
"showFiatConversionInTestnets": {
"message": "Show conversion on test networks"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Mostrar"
},
"showAdvancedGasInline": {
"message": "Controles avanzados de gas"
},
"showAdvancedGasInlineDescription": {
"message": "Seleccione esta opción para mostrar el precio del gas y limitar los controles directamente en las pantallas de envío y confirmación."
},
"showFiatConversionInTestnets": {
"message": "Mostrar conversión en redes de prueba"
},

View File

@ -2070,12 +2070,6 @@
"show": {
"message": "Mostrar"
},
"showAdvancedGasInline": {
"message": "Controles avanzados de gas"
},
"showAdvancedGasInlineDescription": {
"message": "Seleccione esta opción para mostrar el precio del gas y limitar los controles directamente en las pantallas de envío y confirmación."
},
"showFiatConversionInTestnets": {
"message": "Mostrar conversión en redes de prueba"
},

View File

@ -668,12 +668,6 @@
"settings": {
"message": "Seaded"
},
"showAdvancedGasInline": {
"message": "Täiustatud gaasijuhikud"
},
"showAdvancedGasInlineDescription": {
"message": "Valige see, et kuvada gaasi hinda ja piirangut otse saatmise ning kinnitamise kuval."
},
"showFiatConversionInTestnets": {
"message": "Kuva teisendus Testnetsis"
},

View File

@ -678,12 +678,6 @@
"settings": {
"message": "تنظیمات"
},
"showAdvancedGasInline": {
"message": "کنترول های پیشرفته گاز"
},
"showAdvancedGasInlineDescription": {
"message": "این را انتخاب نمایید تا قیمت گاز را نشان داده و کنترول ها را بصورت مستقیم در صفحات ارسال و تأیید محدود نماید."
},
"showFiatConversionInTestnets": {
"message": "نمایش تغییرات Testnets"
},

View File

@ -675,12 +675,6 @@
"settings": {
"message": "Asetukset"
},
"showAdvancedGasInline": {
"message": "Bensan lisävalvonta"
},
"showAdvancedGasInlineDescription": {
"message": "Valitse tämä näyttääksesi gas-hinta ja rajoittaaksesi säätimiä suoraan lähetä- ja vahvista-ruuduissa."
},
"showFiatConversionInTestnets": {
"message": "Näytä vaihtokurssi koeverkoissa"
},

View File

@ -602,12 +602,6 @@
"settings": {
"message": "Mga Setting"
},
"showAdvancedGasInline": {
"message": "Mga advanced na kontrol sa gas"
},
"showAdvancedGasInlineDescription": {
"message": "Piliin ito para ipakita ang presyo ng gas at limitahan ang mga kontrol nang direkta sa screen ng pagpapadala at pagkumpirma."
},
"showFiatConversionInTestnets": {
"message": "Ipakita ang Conversion sa mga Testnet"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Afficher"
},
"showAdvancedGasInline": {
"message": "Contrôles de carburant avancés"
},
"showAdvancedGasInlineDescription": {
"message": "Sélectionnez cette option pour afficher le prix du carburant et les contrôles des limites directement sur les écrans denvoi et de confirmation."
},
"showFiatConversionInTestnets": {
"message": "Afficher la conversion sur les testnets"
},

View File

@ -675,12 +675,6 @@
"settings": {
"message": "הגדרות"
},
"showAdvancedGasInline": {
"message": "אמצעי שליטה מתקדמים בדלק"
},
"showAdvancedGasInlineDescription": {
"message": "בחר/י באפשרות זו כדי להציג אמצעי שליטה במחיר הדלק וההגבלה (limit) ישירות במסכי השליחה והאישור."
},
"showFiatConversionInTestnets": {
"message": "הצג המרה -Testnets"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "दिखाएं"
},
"showAdvancedGasInline": {
"message": "उन्नत गैस नियंत्रण"
},
"showAdvancedGasInlineDescription": {
"message": "गैस मूल्य और सीमा नियंत्रण को सीधे भेजने और पुष्टि करने की स्क्रीन पर दिखाने के लिए इसका चयन करें।"
},
"showFiatConversionInTestnets": {
"message": "टेस्ट नेटवर्क पर रूपांतरण दिखाएं"
},

View File

@ -671,12 +671,6 @@
"settings": {
"message": "Postavke"
},
"showAdvancedGasInline": {
"message": "Napredno upravljanje gorivom"
},
"showAdvancedGasInlineDescription": {
"message": "Odaberite ovu stavku za prikaz cijene goriva i izravno ograničite kontrole prilikom slanja i potvrđivanja zaslona."
},
"showFiatConversionInTestnets": {
"message": "Prikaži konverziju na usluzi Testnets"
},

View File

@ -671,12 +671,6 @@
"settings": {
"message": "Beállítások"
},
"showAdvancedGasInline": {
"message": "Speciális gázszabályzók"
},
"showAdvancedGasInlineDescription": {
"message": "Jelöld meg ezt a gázárak és korlátozásellenőrzés mutatásához közvetlenül a küldési és megerősítési képernyőkön."
},
"showFiatConversionInTestnets": {
"message": "Konverzió mutatása Testnetsen"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Tampil"
},
"showAdvancedGasInline": {
"message": "Kontrol gas lanjutan"
},
"showAdvancedGasInlineDescription": {
"message": "Pilih ini untuk menampilkan biaya gas dan kontrol batas secara langsung di layar kirim dan konfirmasi."
},
"showFiatConversionInTestnets": {
"message": "Tampilkan konversi di jaringan uji"
},

View File

@ -1470,12 +1470,6 @@
"settings": {
"message": "Impostazioni"
},
"showAdvancedGasInline": {
"message": "Controlli gas avanzati"
},
"showAdvancedGasInlineDescription": {
"message": "Seleziona per visualizzare i controlli su prezzo e limite del gas nelle schermate di invio e conferma."
},
"showFiatConversionInTestnets": {
"message": "Mostra conversione nelle reti di test"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "表示"
},
"showAdvancedGasInline": {
"message": "高度なガスコントロール"
},
"showAdvancedGasInlineDescription": {
"message": "これを選択すると、ガス代と限度額のコントロールが送金画面と確認画面に直接表示されます。"
},
"showFiatConversionInTestnets": {
"message": "テストネット上に変換を表示"
},

View File

@ -678,12 +678,6 @@
"settings": {
"message": "ಸೆಟ್ಟಿಂಗ್‌ಗಳು"
},
"showAdvancedGasInline": {
"message": "ಸುಧಾರಿತ ಗ್ಯಾಸ್ ನಿಯಂತ್ರಣಗಳು"
},
"showAdvancedGasInlineDescription": {
"message": "ಕಳುಹಿಸುವ ಮತ್ತು ಖಚಿತಪಡಿಸುವ ಪರದೆಯ ಮೇಲೆ ನೇರವಾಗಿ ಗ್ಯಾಸ್ ಬೆಲೆ ಮತ್ತು ಮಿತಿಯ ನಿಯಂತ್ರಣಗಳನ್ನು ತೋರಿಸಲು ಇದನ್ನು ಆಯ್ಕೆಮಾಡಿ."
},
"showFiatConversionInTestnets": {
"message": "Testnets ನಲ್ಲಿ ಪರಿವರ್ತನೆಯನ್ನು ತೋರಿಸಿ"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "보기"
},
"showAdvancedGasInline": {
"message": "고급 가스 제어 기능"
},
"showAdvancedGasInlineDescription": {
"message": "이 항목을 선택하면 보내기 및 확인 화면에서 바로 가스 가격과 한도 조절을 확인할 수 있습니다."
},
"showFiatConversionInTestnets": {
"message": "테스트넷에 전환 표시"
},

View File

@ -678,12 +678,6 @@
"settings": {
"message": "Nustatymai"
},
"showAdvancedGasInline": {
"message": "Išplėstiniai dujų valdikliai"
},
"showAdvancedGasInlineDescription": {
"message": "Pasirinkite tai, kad būtų rodoma dujų kaina, ir ribokite valdymo elementus tiesiogiai siuntimo ir patvirtinimo ekranuose."
},
"showFiatConversionInTestnets": {
"message": "Rodyti keitimą „Testnet“"
},

View File

@ -674,12 +674,6 @@
"settings": {
"message": "Iestatījumi"
},
"showAdvancedGasInline": {
"message": "Papildu Gas vadīklas"
},
"showAdvancedGasInlineDescription": {
"message": "Atlasiet šo, lai parādītu Gas cenu un ierobežotu kontroles iespējas tieši sūtīšanas un apstiprināšanas ekrānos."
},
"showFiatConversionInTestnets": {
"message": "Rādīt konversiju testa tīklos"
},

View File

@ -658,12 +658,6 @@
"settings": {
"message": "Tetapan"
},
"showAdvancedGasInline": {
"message": "Kawalan gas lanjutan"
},
"showAdvancedGasInlineDescription": {
"message": "Pilih ini untuk menunjukkan harga gas dan kawalan had terus di skrin hantar dan sahkan."
},
"showFiatConversionInTestnets": {
"message": "Tunjukkan Penukaran di Testnets"
},

View File

@ -659,12 +659,6 @@
"settings": {
"message": "Innstillinger"
},
"showAdvancedGasInline": {
"message": "Avanserte datakraftskontroller"
},
"showAdvancedGasInlineDescription": {
"message": "Velg dette for å vise bensinpris og begrensningskontroller direkte på send- og bekreftskjermbildene."
},
"showFiatConversionInTestnets": {
"message": "Vis konvertering på Testnets "
},

View File

@ -1320,12 +1320,6 @@
"settings": {
"message": "Mga Setting"
},
"showAdvancedGasInline": {
"message": "Mga advanced na kontrol sa gas"
},
"showAdvancedGasInlineDescription": {
"message": "Piliin ito para direktang maipakita ang presyo ng gas at mga kontrol sa limitasyon sa mga screen ng pagpapadala at pagkumpirma."
},
"showFiatConversionInTestnets": {
"message": "Ipakita ang Conversion sa Testnets"
},

View File

@ -672,12 +672,6 @@
"settings": {
"message": "Ustawienia"
},
"showAdvancedGasInline": {
"message": "Zaawansowana kontrola gazu"
},
"showAdvancedGasInlineDescription": {
"message": "Wybierz tę opcję, aby móc zmienić cenę i limit gazu bezpośrednio na ekranach wysyłania i potwierdzania."
},
"showFiatConversionInTestnets": {
"message": "Pokaż przeliczanie w sieciach testowych"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Exibir"
},
"showAdvancedGasInline": {
"message": "Controles avançados de gás"
},
"showAdvancedGasInlineDescription": {
"message": "Selecione isso para mostrar o preço do gás e limitar os controles diretamente nas telas de envio e de confirmação."
},
"showFiatConversionInTestnets": {
"message": "Mostrar conversão nas redes de teste"
},

View File

@ -2070,12 +2070,6 @@
"show": {
"message": "Mostrar"
},
"showAdvancedGasInline": {
"message": "Controles avançados de gás"
},
"showAdvancedGasInlineDescription": {
"message": "Selecione isso para mostrar o preço do gás e limitar os controles diretamente nas telas de envio e de confirmação."
},
"showFiatConversionInTestnets": {
"message": "Mostrar conversão nas redes de teste"
},

View File

@ -665,12 +665,6 @@
"settings": {
"message": "Setări"
},
"showAdvancedGasInline": {
"message": "Controale avansate pentru gas"
},
"showAdvancedGasInlineDescription": {
"message": "Selectați aceasta pentru a arăta prețul gasului și comenzile de limitare direct pe ecranele de trimitere și confirmare."
},
"showFiatConversionInTestnets": {
"message": "Afișează conversiile pe rețelele de test (testnets)"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Показать"
},
"showAdvancedGasInline": {
"message": "Расширенное управление газом"
},
"showAdvancedGasInlineDescription": {
"message": "Выберите это, чтобы отображать цену газа и управление лимитами непосредственно на экранах отправки и подтверждения."
},
"showFiatConversionInTestnets": {
"message": "Показывать конвертацию в тестовых сетях"
},

View File

@ -650,12 +650,6 @@
"settings": {
"message": "Nastavení"
},
"showAdvancedGasInline": {
"message": "Pokročilé ovládacie prvky GAS"
},
"showAdvancedGasInlineDescription": {
"message": "Vyberte túto možnosť vtedy, keď chcete priamo na obrazovke odosielania a potvrdenia zobraziť ceny za GAS a ovládacie prvky limitov."
},
"showFiatConversionInTestnets": {
"message": "Zobraziť konverziu na Testnets"
},

View File

@ -666,12 +666,6 @@
"settings": {
"message": "Nastavitve"
},
"showAdvancedGasInline": {
"message": "Napredno krmiljenje plina"
},
"showAdvancedGasInlineDescription": {
"message": "Izberite to možnost, če želite prikazati ceno plina in omejiti nadzor neposredno na zaslonih za pošiljanje in potrditev."
},
"showFiatConversionInTestnets": {
"message": "Pokažite pretvorbo na testnih omrežjih"
},

View File

@ -669,12 +669,6 @@
"settings": {
"message": "Podešavanja"
},
"showAdvancedGasInline": {
"message": "Napredne kontrole gasa"
},
"showAdvancedGasInlineDescription": {
"message": "Izaberite ovo kako biste prikazali cenu gasa i kontrole limita direktno na ekranima za slanje i potvrđivanje."
},
"showFiatConversionInTestnets": {
"message": "Prikažite konverzije na Testnet"
},

View File

@ -662,12 +662,6 @@
"settings": {
"message": "Inställningar"
},
"showAdvancedGasInline": {
"message": "Avancerade gaskontroller"
},
"showAdvancedGasInlineDescription": {
"message": "Välj detta för att visa gas-pris och gränskontroller direkt på skicka och bekräfta-skärmarna."
},
"showFiatConversionInTestnets": {
"message": "Visa omvandling på testnätverk"
},

View File

@ -656,12 +656,6 @@
"settings": {
"message": "Mipangilio"
},
"showAdvancedGasInline": {
"message": "Udhibiti wa juu wa gesi"
},
"showAdvancedGasInlineDescription": {
"message": "Chagua hii ili uonyeshe bei ya gesi na punguza vidhibiti moja kwa moja kwenye skrini za tuma na thibitisha."
},
"showFiatConversionInTestnets": {
"message": "Onyesha Ubadilishaji kwenye Testnets"
},

View File

@ -344,9 +344,6 @@
"settings": {
"message": "การตั้งค่า"
},
"showAdvancedGasInline": {
"message": "การควบคุม Gas ขั้นสูง"
},
"showPrivateKeys": {
"message": "แสดงคีย์ส่วนตัว"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Ipakita"
},
"showAdvancedGasInline": {
"message": "Mga advanced na kontrol sa gas"
},
"showAdvancedGasInlineDescription": {
"message": "Piliin ito para direktang maipakita ang presyo ng gas at mga kontrol sa limitasyon sa mga screen ng pagpapadala at pagkumpirma."
},
"showFiatConversionInTestnets": {
"message": "Ipakita ang Conversion sa Testnets"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Göster"
},
"showAdvancedGasInline": {
"message": "Gelişmiş gaz kontrolleri"
},
"showAdvancedGasInlineDescription": {
"message": "Gaz fiyatı ve limit kontrollerini doğrudan gönder ve onayla ekranlarında göstermek için bunu seçin."
},
"showFiatConversionInTestnets": {
"message": "Test ağlarında dönüşümü göster"
},

View File

@ -678,12 +678,6 @@
"settings": {
"message": "Налаштування"
},
"showAdvancedGasInline": {
"message": "Розширене керування газом"
},
"showAdvancedGasInlineDescription": {
"message": "Виберіть цей параметр, щоб відображати регулятори ціни й ліміту газу на екранах надсилання й підтвердження."
},
"showFiatConversionInTestnets": {
"message": "Показати бесіду у Testnet"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "Hiển thị"
},
"showAdvancedGasInline": {
"message": "Quyền kiểm soát gas nâng cao"
},
"showAdvancedGasInlineDescription": {
"message": "Chọn tùy chọn này để hiển thị các quyền kiểm soát giá gas và giới hạn ngay trên màn hình gửi và xác nhận."
},
"showFiatConversionInTestnets": {
"message": "Hiển thị tỷ lệ quy đổi trên các mạng thử nghiệm"
},

View File

@ -3250,12 +3250,6 @@
"show": {
"message": "显示"
},
"showAdvancedGasInline": {
"message": "高级燃料控制"
},
"showAdvancedGasInlineDescription": {
"message": "选择此项可直接在发送和确认界面显示燃料价格和上限控制。"
},
"showFiatConversionInTestnets": {
"message": "在测试网络上显示转换"
},

View File

@ -1245,12 +1245,6 @@
"settings": {
"message": "設定"
},
"showAdvancedGasInline": {
"message": "顯示進階 gas 控制選項"
},
"showAdvancedGasInlineDescription": {
"message": "選擇此項會在傳送或確認畫面顯示可微調 gas 價格以及 gas 上限的功能"
},
"showFiatConversionInTestnets": {
"message": "在測試網上顯示匯率"
},

View File

@ -77,13 +77,6 @@ export const SETTINGS_CONSTANTS = [
route: `${ADVANCED_ROUTE}#clear-activity`,
icon: 'fas fa-sliders-h',
},
{
tabMessage: (t) => t('advanced'),
sectionMessage: (t) => t('showAdvancedGasInline'),
descriptionMessage: (t) => t('showAdvancedGasInlineDescription'),
route: `${ADVANCED_ROUTE}#advanced-gascontrols`,
icon: 'fas fa-sliders-h',
},
{
tabMessage: (t) => t('advanced'),
sectionMessage: (t) => t('showHexData'),

View File

@ -33,8 +33,6 @@ const t = (key) => {
return 'Clear activity and nonce data';
case 'clearActivityDescription':
return "This resets the account's nonce and erases data from the activity tab in your wallet. Only the current account and network will be affected. Your balances and incoming transactions won't change.";
case 'showAdvancedGasInline':
return 'Advanced gas controls';
case 'showAdvancedGasInlineDescription':
return 'Select this to show gas price and limit controls directly on the send and confirm screens.';
case 'showHexData':
@ -159,7 +157,7 @@ describe('Settings Search Utils', () => {
});
it('should get good advanced section number', () => {
expect(getNumberOfSettingsInSection(t, t('advanced'))).toStrictEqual(14);
expect(getNumberOfSettingsInSection(t, t('advanced'))).toStrictEqual(13);
});
it('should get good contact section number', () => {

View File

@ -41,8 +41,6 @@ export default class AdvancedTab extends PureComponent {
warning: PropTypes.string,
history: PropTypes.object,
sendHexData: PropTypes.bool,
setAdvancedInlineGasFeatureFlag: PropTypes.func,
advancedInlineGas: PropTypes.bool,
showFiatInTestnets: PropTypes.bool,
showTestNetworks: PropTypes.bool,
autoLockTimeLimit: PropTypes.number,
@ -262,43 +260,13 @@ export default class AdvancedTab extends PureComponent {
);
}
renderAdvancedGasInputInline() {
const { t } = this.context;
const { advancedInlineGas, setAdvancedInlineGasFeatureFlag } = this.props;
return (
<div
ref={this.settingsRefs[3]}
className="settings-page__content-row"
data-testid="advanced-setting-advanced-gas-inline"
>
<div className="settings-page__content-item">
<span>{t('showAdvancedGasInline')}</span>
<div className="settings-page__content-description">
{t('showAdvancedGasInlineDescription')}
</div>
</div>
<div className="settings-page__content-item">
<div className="settings-page__content-item-col">
<ToggleButton
value={advancedInlineGas}
onToggle={(value) => setAdvancedInlineGasFeatureFlag(!value)}
offLabel={t('off')}
onLabel={t('on')}
/>
</div>
</div>
</div>
);
}
renderHexDataOptIn() {
const { t } = this.context;
const { sendHexData, setHexDataFeatureFlag } = this.props;
return (
<div
ref={this.settingsRefs[4]}
ref={this.settingsRefs[3]}
className="settings-page__content-row"
data-testid="advanced-setting-hex-data"
>
@ -329,7 +297,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[5]}
ref={this.settingsRefs[4]}
className="settings-page__content-row"
data-testid="advanced-setting-show-testnet-conversion"
>
@ -361,7 +329,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[6]}
ref={this.settingsRefs[5]}
className="settings-page__content-row"
data-testid="advanced-setting-show-testnet-conversion"
>
@ -391,7 +359,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[7]}
ref={this.settingsRefs[6]}
className="settings-page__content-row"
data-testid="advanced-setting-custom-nonce"
>
@ -422,7 +390,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[8]}
ref={this.settingsRefs[7]}
className="settings-page__content-row"
data-testid="advanced-setting-auto-lock"
>
@ -510,7 +478,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[9]}
ref={this.settingsRefs[8]}
className="settings-page__content-row"
data-testId="ledger-live-control"
>
@ -576,7 +544,7 @@ export default class AdvancedTab extends PureComponent {
return (
<div
ref={this.settingsRefs[10]}
ref={this.settingsRefs[9]}
className="settings-page__content-row"
data-testid="advanced-setting-dismiss-reminder"
>
@ -754,7 +722,6 @@ export default class AdvancedTab extends PureComponent {
{this.renderStateLogs()}
{this.renderMobileSync()}
{this.renderResetAccount()}
{this.renderAdvancedGasInputInline()}
{this.renderHexDataOptIn()}
{this.renderShowConversionInTestnets()}
{this.renderToggleTestNetworks()}

View File

@ -48,7 +48,7 @@ describe('AdvancedTab Component', () => {
it('should toggle show test networks', () => {
const { queryAllByRole } = renderWithProvider(<AdvancedTab />, mockStore);
const testNetworkToggle = queryAllByRole('checkbox')[3];
const testNetworkToggle = queryAllByRole('checkbox')[2];
fireEvent.click(testNetworkToggle);

View File

@ -25,7 +25,7 @@ export const mapStateToProps = (state) => {
metamask,
} = state;
const {
featureFlags: { sendHexData, advancedInlineGas } = {},
featureFlags: { sendHexData } = {},
disabledRpcMethodPreferences,
useNonceField,
ledgerTransportType,
@ -45,7 +45,6 @@ export const mapStateToProps = (state) => {
return {
warning,
sendHexData,
advancedInlineGas,
showFiatInTestnets,
showTestNetworks,
autoLockTimeLimit,
@ -69,8 +68,6 @@ export const mapDispatchToProps = (dispatch) => {
displayWarning: (warning) => dispatch(displayWarning(warning)),
showResetAccountConfirmationModal: () =>
dispatch(showModal({ name: 'CONFIRM_RESET_ACCOUNT' })),
setAdvancedInlineGasFeatureFlag: (shouldShow) =>
dispatch(setFeatureFlag('advancedInlineGas', shouldShow)),
setUseNonceField: (value) => dispatch(setUseNonceField(value)),
setShowFiatConversionOnTestnetsPreference: (value) => {
return dispatch(setShowFiatConversionOnTestnetsPreference(value));

View File

@ -9,7 +9,6 @@ export default {
warning: { control: 'text' },
useNonceField: { control: 'boolean' },
sendHexData: { control: 'boolean' },
advancedInlineGas: { control: 'boolean' },
showFiatInTestnets: { control: 'boolean' },
useLedgerLive: { control: 'boolean' },
dismissSeedBackUpReminder: { control: 'boolean' },
@ -28,9 +27,6 @@ export default {
showResetAccountConfirmationModal: {
action: 'showResetAccountConfirmationModal',
},
setAdvancedInlineGasFeatureFlag: {
action: 'setAdvancedInlineGasFeatureFlag',
},
},
};
@ -39,7 +35,6 @@ export const DefaultStory = (args) => {
{
useNonceField,
sendHexData,
advancedInlineGas,
showFiatInTestnets,
dismissSeedBackUpReminder,
},
@ -58,12 +53,6 @@ export const DefaultStory = (args) => {
});
};
const handleAdvancedInlineGas = () => {
updateArgs({
advancedInlineGas: !advancedInlineGas,
});
};
const handleShowFiatInTestnets = () => {
updateArgs({
showFiatInTestnets: !showFiatInTestnets,
@ -83,8 +72,6 @@ export const DefaultStory = (args) => {
setUseNonceField={handleUseNonceField}
sendHexData={sendHexData}
setHexDataFeatureFlag={handleSendHexData}
advancedInlineGas={advancedInlineGas}
setAdvancedInlineGasFeatureFlag={handleAdvancedInlineGas}
showFiatInTestnets={showFiatInTestnets}
setShowFiatConversionOnTestnetsPreference={handleShowFiatInTestnets}
dismissSeedBackUpReminder={dismissSeedBackUpReminder}
@ -100,7 +87,6 @@ DefaultStory.args = {
warning: 'Warning Sample',
useNonceField: false,
sendHexData: false,
advancedInlineGas: false,
showFiatInTestnets: false,
useLedgerLive: false,
dismissSeedBackUpReminder: false,