[#21396] chore: rename crypto buy phrases (#21404)

This commit is contained in:
Mohsen 2024-10-15 14:15:07 +03:00 committed by GitHub
parent 18f7d05a61
commit 9e43aa04c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 10 deletions

View File

@ -121,7 +121,7 @@
[quo/alert-banner [quo/alert-banner
{:action? true {:action? true
:text (i18n/label :t/not-enough-assets-to-pay-gas-fees) :text (i18n/label :t/not-enough-assets-to-pay-gas-fees)
:button-text (i18n/label :t/buy-eth) :button-text (i18n/label :t/add-eth)
:on-button-press #(rf/dispatch [:show-bottom-sheet :on-button-press #(rf/dispatch [:show-bottom-sheet
{:content buy-token/view}])}]) {:content buy-token/view}])}])

View File

@ -55,7 +55,7 @@
#(set-min-height #(set-min-height
(oops/oget % :nativeEvent :layout :height)))] (oops/oget % :nativeEvent :layout :height)))]
[:<> [:<>
[quo/drawer-top {:title (or title (i18n/label :t/buy-assets))}] [quo/drawer-top {:title (or title (i18n/label :t/ways-to-buy-assets))}]
[quo/segmented-control [quo/segmented-control
{:size 32 {:size 32
:container-style style/tabs :container-style style/tabs

View File

@ -257,17 +257,15 @@
(merge {:action? true (merge {:action? true
:on-button-press #(rf/dispatch [:show-bottom-sheet :on-button-press #(rf/dispatch [:show-bottom-sheet
{:content buy-token/view}]) {:content buy-token/view}])
:button-text (i18n/label :t/buy-assets)}) :button-text (i18n/label :t/add-assets)})
(= error-response-code (= error-response-code
constants/router-error-code-not-enough-native-balance) constants/router-error-code-not-enough-native-balance)
(merge {:action? true (merge {:action? true
:on-button-press #(rf/dispatch :on-button-press #(rf/dispatch
[:show-bottom-sheet [:show-bottom-sheet
{:content (fn [] {:content (fn []
[buy-token/view [buy-token/view])}])
{:title (i18n/label :button-text (i18n/label :t/add-eth)}))]
:t/buy-ethereum)}])}])
:button-text (i18n/label :t/buy-eth)}))]
(when (or pay-input-error? error-response) (when (or pay-input-error? error-response)
[quo/alert-banner props]))) [quo/alert-banner props])))

View File

@ -31,7 +31,7 @@
:not-enough-assets :not-enough-assets
:t/not-enough-assets-for-transaction))) :t/not-enough-assets-for-transaction)))
:button-text (i18n/label :t/buy-eth) :button-text (i18n/label :t/add-eth)
:on-button-press #(rf/dispatch [:show-bottom-sheet :on-button-press #(rf/dispatch [:show-bottom-sheet
{:content buy-token/view}])}]) {:content buy-token/view}])}])
[rn/view {:style style/content-container} [rn/view {:style style/content-container}

View File

@ -51,9 +51,11 @@
"add-address-to-watch": "Add address to watch", "add-address-to-watch": "Add address to watch",
"add-address-to-watch-description": "Watch a public address or ENS name", "add-address-to-watch-description": "Watch a public address or ENS name",
"add-an-account": "Add an account", "add-an-account": "Add an account",
"add-assets": "Add assets",
"add-bootnode": "Add bootnode", "add-bootnode": "Add bootnode",
"add-contact": "Add contact", "add-contact": "Add contact",
"add-custom-token": "Add custom token", "add-custom-token": "Add custom token",
"add-eth": "Add ETH",
"add-favourite": "Add favourite", "add-favourite": "Add favourite",
"add-mailserver": "Add Status node", "add-mailserver": "Add Status node",
"add-me-to-your-contacts": "Please add me to your contacts", "add-me-to-your-contacts": "Please add me to your contacts",
@ -267,13 +269,11 @@
"bug-report-too-short-description": "Description is too short", "bug-report-too-short-description": "Description is too short",
"build-yourself": "To use the app without these Terms of Use, you can build your own version", "build-yourself": "To use the app without these Terms of Use, you can build your own version",
"buy": "Buy", "buy": "Buy",
"buy-assets": "Buy assets",
"buy-crypto": "Buy crypto", "buy-crypto": "Buy crypto",
"buy-crypto-choose-a-service": "Choose a service you'd like to use to buy crypto", "buy-crypto-choose-a-service": "Choose a service you'd like to use to buy crypto",
"buy-crypto-description": "Find a dapp to buy crypto now", "buy-crypto-description": "Find a dapp to buy crypto now",
"buy-crypto-leaving": "You are leaving Status and entering a third party website to complete your purchase", "buy-crypto-leaving": "You are leaving Status and entering a third party website to complete your purchase",
"buy-crypto-title": "Looks like your wallet is empty", "buy-crypto-title": "Looks like your wallet is empty",
"buy-eth": "Buy ETH",
"buy-ethereum": "Buy Ethereum", "buy-ethereum": "Buy Ethereum",
"buy-keycard": "Buy Keycard", "buy-keycard": "Buy Keycard",
"by-continuing-you-accept": "By continuing you accept our ", "by-continuing-you-accept": "By continuing you accept our ",
@ -2777,6 +2777,7 @@
"watch-only": "Watch-only", "watch-only": "Watch-only",
"watched-account-removed": "Watched address has been removed", "watched-account-removed": "Watched address has been removed",
"watched-address": "Watched address", "watched-address": "Watched address",
"ways-to-buy-assets": "Ways to buy assets",
"wc-brand-guide": "Guidance on using branding such as trademarks and logos", "wc-brand-guide": "Guidance on using branding such as trademarks and logos",
"wc-disclaimer": "Disclaimers (including third party providers), warranties, and legal releases", "wc-disclaimer": "Disclaimers (including third party providers), warranties, and legal releases",
"wc-dispute": "Dispute resolution provisions", "wc-dispute": "Dispute resolution provisions",