From a62de72aaadf49f09c81b80585bb1237826f80fe Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Thu, 25 May 2023 18:48:11 +0200 Subject: [PATCH] Styling fix and content update for Swaps (#19284) --- app/_locales/de/messages.json | 4 ---- app/_locales/el/messages.json | 4 ---- app/_locales/en/messages.json | 4 ---- app/_locales/es/messages.json | 4 ---- app/_locales/es_419/messages.json | 4 ---- app/_locales/fr/messages.json | 4 ---- app/_locales/hi/messages.json | 4 ---- app/_locales/id/messages.json | 4 ---- app/_locales/ja/messages.json | 4 ---- app/_locales/ko/messages.json | 4 ---- app/_locales/pt/messages.json | 4 ---- app/_locales/pt_BR/messages.json | 4 ---- app/_locales/ru/messages.json | 4 ---- app/_locales/tl/messages.json | 4 ---- app/_locales/tr/messages.json | 4 ---- app/_locales/vi/messages.json | 4 ---- app/_locales/zh_CN/messages.json | 4 ---- ui/pages/swaps/awaiting-signatures/awaiting-signatures.js | 2 +- ui/pages/swaps/fee-card/fee-card.js | 6 +----- ui/pages/swaps/fee-card/fee-card.stories.js | 1 - ui/pages/swaps/fee-card/fee-card.test.js | 6 +++--- .../loading-swaps-quotes-stories-metadata.test.js.snap | 2 +- ui/pages/swaps/slippage-buttons/slippage-buttons.js | 2 +- ui/pages/swaps/view-quote/view-quote.js | 3 --- 24 files changed, 7 insertions(+), 83 deletions(-) diff --git a/app/_locales/de/messages.json b/app/_locales/de/messages.json index b8b8c19df..95969f006 100644 --- a/app/_locales/de/messages.json +++ b/app/_locales/de/messages.json @@ -3585,10 +3585,6 @@ "message": "Sie benötigen $1 mehr $2, um diesen Swap abzuschließen", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Die besten $1 Kurse.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Keine Token verfügbar mit $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/el/messages.json b/app/_locales/el/messages.json index 06ebced86..7e71a3e07 100644 --- a/app/_locales/el/messages.json +++ b/app/_locales/el/messages.json @@ -3585,10 +3585,6 @@ "message": "Χρειάζεστε $1 περισσότερα $2 για να ολοκληρώσετε αυτήν την ανταλλαγή", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Το καλύτερο από $1 προσφορές.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Δεν υπάρχουν διαθέσιμα tokens που να ταιριάζουν σε $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 088fe8444..8369a9c82 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -4086,10 +4086,6 @@ "message": "You need $1 more $2 to complete this swap", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Best of $1 quotes.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "No tokens available matching $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/es/messages.json b/app/_locales/es/messages.json index 67a3b012a..d70534f6d 100644 --- a/app/_locales/es/messages.json +++ b/app/_locales/es/messages.json @@ -3585,10 +3585,6 @@ "message": "Necesita $1 más $2 para completar este canje", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Mejor cotización de $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "No hay tokens disponibles que coincidan con $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/es_419/messages.json b/app/_locales/es_419/messages.json index 98254c6fc..09876fb19 100644 --- a/app/_locales/es_419/messages.json +++ b/app/_locales/es_419/messages.json @@ -2241,10 +2241,6 @@ "message": "Necesita $1 más $2 para realizar este canje", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Mejor cotización de $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "No hay tokens disponibles que coincidan con $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/fr/messages.json b/app/_locales/fr/messages.json index b543b2114..b5bfda3f6 100644 --- a/app/_locales/fr/messages.json +++ b/app/_locales/fr/messages.json @@ -3585,10 +3585,6 @@ "message": "Vous avez besoin de $1 $2 de plus pour effectuer ce swap", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Meilleures cotations de $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Aucun jeton disponible correspondant à $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/hi/messages.json b/app/_locales/hi/messages.json index e9781a768..8154c2b86 100644 --- a/app/_locales/hi/messages.json +++ b/app/_locales/hi/messages.json @@ -3585,10 +3585,6 @@ "message": "इस स्वैप को पूरा करने के लिए आपको अधिक $1 और $2 की आवश्यकता होगी", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "$1 उद्धरणों में से सर्वश्रेष्ठ।", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "$1 के मिलान वाले कोई भी टोकन उपलब्ध नहीं हैं", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/id/messages.json b/app/_locales/id/messages.json index 97df69b6f..3aff4b7d6 100644 --- a/app/_locales/id/messages.json +++ b/app/_locales/id/messages.json @@ -3585,10 +3585,6 @@ "message": "Anda memerlukan $1 $2 lagi untuk menyelesaikan swap", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Kuotasi terbaik dari $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Tidak ada token yang cocok yang tersedia $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json index a3c0dd28e..51ddd57ad 100644 --- a/app/_locales/ja/messages.json +++ b/app/_locales/ja/messages.json @@ -3585,10 +3585,6 @@ "message": "このスワップを完了させるには、さらに$1の$2が必要です。", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "最善の$1の見積もり。", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "$1と一致するトークンがありません", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json index c4de64fc4..a6748c52d 100644 --- a/app/_locales/ko/messages.json +++ b/app/_locales/ko/messages.json @@ -3585,10 +3585,6 @@ "message": "이 스왑을 완료하려면 $1개의 추가 $2이(가) 필요합니다.", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "$1의 최고 견적", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "$1와(과) 일치하는 토큰이 없습니다.", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/pt/messages.json b/app/_locales/pt/messages.json index d52ed995d..2c68d1dce 100644 --- a/app/_locales/pt/messages.json +++ b/app/_locales/pt/messages.json @@ -3585,10 +3585,6 @@ "message": "Você precisa de mais $1 $2 para concluir essa troca", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Melhores cotações de $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Nenhum token disponível correspondente a $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/pt_BR/messages.json b/app/_locales/pt_BR/messages.json index 6c949ccfc..e0189eb64 100644 --- a/app/_locales/pt_BR/messages.json +++ b/app/_locales/pt_BR/messages.json @@ -2241,10 +2241,6 @@ "message": "Você precisa de mais $1 $2 para concluir essa troca", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Melhores cotações de $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Nenhum token disponível correspondente a $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/ru/messages.json b/app/_locales/ru/messages.json index 1b9a1a6e8..e6fbc965a 100644 --- a/app/_locales/ru/messages.json +++ b/app/_locales/ru/messages.json @@ -3585,10 +3585,6 @@ "message": "Вам нужно еще $1 $2 для завершения этого обмена", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Лучшие котировки $1.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Нет доступных токенов, соответствующих $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/tl/messages.json b/app/_locales/tl/messages.json index 479683256..7567f49db 100644 --- a/app/_locales/tl/messages.json +++ b/app/_locales/tl/messages.json @@ -3585,10 +3585,6 @@ "message": "Kailangan mo ng $1 pa $2 para makumpleto ang pag-swap na ito", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Pinakamaganda ng $1 na quote.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Walang available na token na tumutugma sa $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/tr/messages.json b/app/_locales/tr/messages.json index 1479da53f..3b7156625 100644 --- a/app/_locales/tr/messages.json +++ b/app/_locales/tr/messages.json @@ -3585,10 +3585,6 @@ "message": "Bu takası tamamlamak için $1 tane daha $2 gerekli", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "En iyi $1 teklifleri.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "$1 ile eşleşen token yok", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json index 4bb67b89e..a29e2daa1 100644 --- a/app/_locales/vi/messages.json +++ b/app/_locales/vi/messages.json @@ -3585,10 +3585,6 @@ "message": "Bạn cần $1 $2 nữa để hoàn tất giao dịch hoán đổi này", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "Tốt nhất trong $1 báo giá.", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "Không có token nào khớp với $1", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/app/_locales/zh_CN/messages.json b/app/_locales/zh_CN/messages.json index 3bbbf0165..f63570154 100644 --- a/app/_locales/zh_CN/messages.json +++ b/app/_locales/zh_CN/messages.json @@ -3585,10 +3585,6 @@ "message": "您还需要 $1 的 $2 来完成这笔交换", "description": "Tells the user how many more of a given token they need for a specific swap. $1 is an amount of tokens and $2 is the token symbol." }, - "swapBestOfNQuotes": { - "message": "$1 报价中最棒的。", - "description": "$1 is the number of quotes that the user can select from when opening the list of quotes on the 'view quote' screen" - }, "swapBuildQuotePlaceHolderText": { "message": "没有与 $1 匹配的代币", "description": "Tells the user that a given search string does not match any tokens in our token lists. $1 can be any string of text" diff --git a/ui/pages/swaps/awaiting-signatures/awaiting-signatures.js b/ui/pages/swaps/awaiting-signatures/awaiting-signatures.js index 7bf1ace5d..dacb93729 100644 --- a/ui/pages/swaps/awaiting-signatures/awaiting-signatures.js +++ b/ui/pages/swaps/awaiting-signatures/awaiting-signatures.js @@ -102,7 +102,7 @@ export default function AwaitingSignatures() { {needsTwoConfirmations && ( <> - + {t('swapToConfirmWithHwWallet')}