Skip to content

Commit

Permalink
feat(suite): search collection texts
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Dec 19, 2024
1 parent cc9d1ba commit cd7eef8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6505,10 +6505,18 @@ export default defineMessages({
id: 'TR_SEARCH_TOKENS',
defaultMessage: 'Search tokens',
},
TR_SEARCH_COLLECTIONS: {
id: 'TR_SEARCH_COLLECTIONS',
defaultMessage: 'Search collections',
},
TR_TOKENS_SEARCH_TOOLTIP: {
id: 'TR_TOKENS_SEARCH_TOOLTIP',
defaultMessage: 'Search by token, symbol, or contract address.',
},
TR_COLLECTIONS_SEARCH_TOOLTIP: {
id: 'TR_COLLECTIONS_SEARCH_TOOLTIP',
defaultMessage: 'Search by collection name, symbol, or contract address.',
},
TR_SEARCH_TRANSACTIONS: {
id: 'TR_SEARCH_TRANSACTIONS',
defaultMessage: 'Search transactions',
Expand Down
6 changes: 4 additions & 2 deletions packages/suite/src/views/wallet/tokens/TokensNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ export const TokensNavigation = ({
</SubTabs>
<Row>
<SearchAction
tooltipText="TR_TOKENS_SEARCH_TOOLTIP"
placeholder="TR_SEARCH_TOKENS"
tooltipText={
isNft ? 'TR_COLLECTIONS_SEARCH_TOOLTIP' : 'TR_TOKENS_SEARCH_TOOLTIP'
}
placeholder={isNft ? 'TR_SEARCH_COLLECTIONS' : 'TR_SEARCH_TOKENS'}
isExpanded={isExpanded}
searchQuery={searchQuery}
setExpanded={setExpanded}
Expand Down

0 comments on commit cd7eef8

Please sign in to comment.