Skip to content

Commit 83c6c78

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 b2890f5 commit 83c6c78

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
@@ -436,7 +436,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
436436
})
437437
})
438438

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

442442
const walletListResult = await chooseWalletListResult(edgeAssets, matchingWallets)
@@ -533,7 +533,7 @@ const CoinRankingDetailsSceneComponent = (props: Props) => {
533533
)}
534534
</IconButton>
535535
)}
536-
<IconButton label={lstrings.trade_currency} onPress={handleTradePress}>
536+
<IconButton label={lstrings.swap} onPress={handleSwapPress}>
537537
<Ionicons name="swap-horizontal" size={theme.rem(2)} color={theme.primaryText} />
538538
</IconButton>
539539
</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)