Skip to content

Commit 202b91e

Browse files
committed
Rename "Trade" -> "Swap"
"Trade" is defined as bringing up a modal with Buy/Sell/Swap in `TransactionListTop` that brings you to the Exchange scene. Since the button on `CoinRankingDetails` brings you directly to the Exchange scene, this button should be `Swap`
1 parent 5f69bdb commit 202b91e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/components/scenes/CoinRankingDetailsScene.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
435435
})
436436
})
437437

438-
const handleTradePress = useHandler(async () => {
438+
const handleSwapPress = useHandler(async () => {
439439
if (edgeAssets.length === 0) return
440440

441441
const walletListResult = await chooseWalletListResult(edgeAssets, matchingWallets)
@@ -532,7 +532,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
532532
)}
533533
</IconButton>
534534
)}
535-
<IconButton label={lstrings.trade_currency} onPress={handleTradePress}>
535+
<IconButton label={lstrings.swap} onPress={handleSwapPress}>
536536
<Ionicons name="swap-horizontal" size={theme.rem(2)} color={theme.primaryText} />
537537
</IconButton>
538538
</View>

src/locales/en_US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,7 @@ const strings = {
16831683
notifications_pinned: 'Pinned',
16841684
notifications_recent: 'Recent',
16851685
notifications_none: `You're all caught up!`,
1686+
swap: 'Swap',
16861687

16871688
// Currency Labels
16881689
currency_label_AFN: 'Afghani',

src/locales/strings/enUS.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@
14531453
"notifications_pinned": "Pinned",
14541454
"notifications_recent": "Recent",
14551455
"notifications_none": "You're all caught up!",
1456+
"swap": "Swap",
14561457
"currency_label_AFN": "Afghani",
14571458
"currency_label_ALL": "Lek",
14581459
"currency_label_DZD": "Algerian Dinar",

0 commit comments

Comments
 (0)