Skip to content

Commit dadff16

Browse files
mohsen-ghafouriHorupa-Olena
authored andcommitted
[#21396] chore: rename crypto buy phrases
1 parent 66f1773 commit dadff16

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

Diff for: src/status_im/contexts/wallet/send/input_amount/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
[quo/alert-banner
122122
{:action? true
123123
:text (i18n/label :t/not-enough-assets-to-pay-gas-fees)
124-
:button-text (i18n/label :t/buy-eth)
124+
:button-text (i18n/label :t/add-eth)
125125
:on-button-press #(rf/dispatch [:show-bottom-sheet
126126
{:content buy-token/view}])}])
127127

Diff for: src/status_im/contexts/wallet/sheets/buy_token/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#(set-min-height
5656
(oops/oget % :nativeEvent :layout :height)))]
5757
[:<>
58-
[quo/drawer-top {:title (or title (i18n/label :t/buy-assets))}]
58+
[quo/drawer-top {:title (or title (i18n/label :t/ways-to-buy-assets))}]
5959
[quo/segmented-control
6060
{:size 32
6161
:container-style style/tabs

Diff for: src/status_im/contexts/wallet/swap/setup_swap/view.cljs

+3-5
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,15 @@
257257
(merge {:action? true
258258
:on-button-press #(rf/dispatch [:show-bottom-sheet
259259
{:content buy-token/view}])
260-
:button-text (i18n/label :t/buy-assets)})
260+
:button-text (i18n/label :t/add-assets)})
261261
(= error-response-code
262262
constants/router-error-code-not-enough-native-balance)
263263
(merge {:action? true
264264
:on-button-press #(rf/dispatch
265265
[:show-bottom-sheet
266266
{:content (fn []
267-
[buy-token/view
268-
{:title (i18n/label
269-
:t/buy-ethereum)}])}])
270-
:button-text (i18n/label :t/buy-eth)}))]
267+
[buy-token/view])}])
268+
:button-text (i18n/label :t/add-eth)}))]
271269
(when (or pay-input-error? error-response)
272270
[quo/alert-banner props])))
273271

Diff for: src/status_im/contexts/wallet/wallet_connect/modals/common/footer/view.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
:not-enough-assets
3333
:t/not-enough-assets-for-transaction)))
34-
:button-text (i18n/label :t/buy-eth)
34+
:button-text (i18n/label :t/add-eth)
3535
:on-button-press #(rf/dispatch [:show-bottom-sheet
3636
{:content buy-token/view}])}])
3737
[rn/view {:style style/content-container}

Diff for: translations/en.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@
5151
"add-address-to-watch": "Add address to watch",
5252
"add-address-to-watch-description": "Watch a public address or ENS name",
5353
"add-an-account": "Add an account",
54+
"add-assets": "Add assets",
5455
"add-bootnode": "Add bootnode",
5556
"add-contact": "Add contact",
5657
"add-custom-token": "Add custom token",
58+
"add-eth": "Add ETH",
5759
"add-favourite": "Add favourite",
5860
"add-mailserver": "Add Status node",
5961
"add-me-to-your-contacts": "Please add me to your contacts",
@@ -266,13 +268,11 @@
266268
"bug-report-too-short-description": "Description is too short",
267269
"build-yourself": "To use the app without these Terms of Use, you can build your own version",
268270
"buy": "Buy",
269-
"buy-assets": "Buy assets",
270271
"buy-crypto": "Buy crypto",
271272
"buy-crypto-choose-a-service": "Choose a service you'd like to use to buy crypto",
272273
"buy-crypto-description": "Find a dapp to buy crypto now",
273274
"buy-crypto-leaving": "You are leaving Status and entering a third party website to complete your purchase",
274275
"buy-crypto-title": "Looks like your wallet is empty",
275-
"buy-eth": "Buy ETH",
276276
"buy-ethereum": "Buy Ethereum",
277277
"buy-keycard": "Buy Keycard",
278278
"by-continuing-you-accept": "By continuing you accept our ",
@@ -2771,6 +2771,7 @@
27712771
"watch-only": "Watch-only",
27722772
"watched-account-removed": "Watched address has been removed",
27732773
"watched-address": "Watched address",
2774+
"ways-to-buy-assets": "Ways to buy assets",
27742775
"wc-brand-guide": "Guidance on using branding such as trademarks and logos",
27752776
"wc-disclaimer": "Disclaimers (including third party providers), warranties, and legal releases",
27762777
"wc-dispute": "Dispute resolution provisions",

0 commit comments

Comments
 (0)