Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ export const SwitchAssetInput = ({
return true;
});

const popularSectionTitle = recentAssets.length > 0 ? 'Recently used & Popular' : 'Popular';
const handleSearchAssetChange = (value: string) => {
const searchQuery = value.trim().toLowerCase();
const matchingAssets = assets.filter(
Expand Down Expand Up @@ -471,7 +470,11 @@ export const SwitchAssetInput = ({
color="fg-2"
sx={{ display: 'block', width: '100%' }}
>
<Trans>{popularSectionTitle}</Trans>
{recentAssets.length > 0 ? (
<Trans>Recently used &amp; Popular</Trans>
) : (
<Trans>Popular</Trans>
)}
</Typography>
{mergedPopular.map((asset) => (
<Box
Expand Down
2 changes: 1 addition & 1 deletion src/locales/el/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,10 @@ msgstr "Swapping {0} collateral"
msgid "Rewards can be claimed through"
msgstr "Rewards can be claimed through"

#: src/components/transactions/Swap/inputs/primitives/SwapAssetInput.tsx
msgid "Recently used & Popular"
msgstr "Recently used & Popular"

#: src/modules/markets/ProtocolTotalsStats.tsx
msgid "Aave total loans"
msgstr "Aave total loans"
Expand Down Expand Up @@ -1600,10 +1604,6 @@ msgstr "Market"
msgid "Learn more about Ethena Rewards program"
msgstr "Learn more about Ethena Rewards program"

#: src/components/transactions/Swap/inputs/primitives/SwapAssetInput.tsx
msgid "{popularSectionTitle}"
msgstr "{popularSectionTitle}"

#: src/modules/governance/proposal/ProposalTimeline.tsx
#: src/modules/governance/proposal/ProposalTimeline.tsx
#: src/modules/governance/proposal/ProposalTimeline.tsx
Expand Down Expand Up @@ -3067,6 +3067,10 @@ msgstr "about SuperFest."
msgid "Withdraw and Swap"
msgstr "Withdraw and Swap"

#: src/components/transactions/Swap/inputs/primitives/SwapAssetInput.tsx
msgid "Popular"
msgstr "Popular"

#: src/components/infoTooltips/FrozenTooltip.tsx
msgid "This asset is frozen due to an Aave Protocol Governance decision. <0>More details</0>"
msgstr "This asset is frozen due to an Aave Protocol Governance decision. <0>More details</0>"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/fr/messages.js

Large diffs are not rendered by default.