Skip to content

Commit

Permalink
feat(suite): nft section
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Dec 12, 2024
1 parent 19b06b3 commit 284d0eb
Show file tree
Hide file tree
Showing 6 changed files with 566 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/suite/src/components/suite/FormattedNftAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const FormattedNftAmount = ({
) : (
<Row gap={spacings.xxs}>
<Row>{token.value}x</Row>
<Translation id="TR_TOKEN_ID" />
<Translation id="TR_TOKEN_ID_COLON" />
</Row>
)}
</Row>
Expand Down Expand Up @@ -95,7 +95,7 @@ export const FormattedNftAmount = ({
<Row className={className}>
{signValue ? <Sign value={signValue} /> : null}
<Box margin={{ right: spacings.xxs }}>
<Translation id="TR_TOKEN_ID" />
<Translation id="TR_TOKEN_ID_COLON" />
</Box>
{isWithLink ? (
<TrezorLink
Expand Down
64 changes: 63 additions & 1 deletion packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,14 @@ export default defineMessages({
defaultMessage: 'Unrecognized tokens pose potential risks. Use caution.',
id: 'TR_TOKEN_UNRECOGNIZED_BY_TREZOR_TOOLTIP',
},
TR_COLLECTIONS_UNRECOGNIZED_BY_TREZOR: {
defaultMessage: 'Unrecognized collections',
id: 'TR_COLLECTIONS_UNRECOGNIZED_BY_TREZOR',
},
TR_NFT_UNRECOGNIZED_BY_TREZOR_TOOLTIP: {
defaultMessage: 'Unrecognized NFTs pose potential risks. Use caution.',
id: 'TR_NFT_UNRECOGNIZED_BY_TREZOR_TOOLTIP',
},
TR_LEARN: {
defaultMessage: 'Learn',
description: 'Link to Suite Guide.',
Expand Down Expand Up @@ -2718,6 +2726,14 @@ export default defineMessages({
defaultMessage: 'Tokens',
id: 'TR_NAV_TOKENS',
},
TR_NAV_COLLECTIONS: {
defaultMessage: 'Collections',
id: 'TR_NAV_COLLECTIONS',
},
TR_NAV_NFTS: {
defaultMessage: 'NFTs',
id: 'TR_NAV_NFTS',
},
TR_NAV_SIGN_AND_VERIFY: {
defaultMessage: 'Sign & verify',
description:
Expand Down Expand Up @@ -3307,8 +3323,13 @@ export default defineMessages({
defaultMessage: 'Details',
id: 'TR_TRANSACTION_DETAILS',
},
TR_TOKEN_ID: {
TR_TOKEN_ID_COLON: {
defaultMessage: 'Token ID:',
id: 'TR_TOKEN_ID_COLON',
},

TR_TOKEN_ID: {
defaultMessage: 'Token ID',
id: 'TR_TOKEN_ID',
},
TR_NO_TRANSPORT: {
Expand Down Expand Up @@ -4979,6 +5000,15 @@ export default defineMessages({
defaultMessage: 'Experimental',
description: 'Section title for Early Access program so far',
},
TR_EXPERIMENTAL_NFT_SECTION: {
id: 'TR_EXPERIMENTAL_NFT_SECTION',
defaultMessage: 'NFT Section',
},
TR_EXPERIMENTAL_NFT_SECTION_DESCRIPTION: {
id: 'TR_EXPERIMENTAL_NFT_SECTION_DESCRIPTION',
defaultMessage:
'Access NFT section in your wallet. Right now available only for EVM based chains.',
},
TR_EXPERIMENTAL_FEATURES_ALLOW: {
id: 'TR_EXPERIMENTAL_FEATURES_ALLOW',
defaultMessage: 'Experimental features',
Expand Down Expand Up @@ -5294,18 +5324,42 @@ export default defineMessages({
id: 'TR_TOKENS',
defaultMessage: 'Tokens',
},
TR_COLLECTION_NAME: {
id: 'TR_COLLECTION_NAME',
defaultMessage: 'Collection name',
},
TR_ID: {
id: 'TR_ID',
defaultMessage: 'ID',
},
TR_NFT: {
id: 'TR_NFT',
defaultMessage: 'NFT',
},
TR_TOKENS_EMPTY: {
id: 'TR_TOKENS_EMPTY',
defaultMessage: 'No tokens... yet.',
},
TR_NFT_EMPTY: {
id: 'TR_NFT_EMPTY',
defaultMessage: 'No NFT collections... yet.',
},
TR_TOKENS_EMPTY_CHECK_HIDDEN: {
id: 'TR_TOKENS_EMPTY_CHECK_HIDDEN',
defaultMessage: 'No tokens. They may be hidden.',
},
TR_NFT_EMPTY_CHECK_HIDDEN: {
id: 'TR_NFT_EMPTY_CHECK_HIDDEN',
defaultMessage: 'No NFT collections. They may be hidden.',
},
TR_HIDDEN_TOKENS_EMPTY: {
id: 'TR_HIDDEN_TOKENS_EMPTY',
defaultMessage: 'You have no hidden tokens.',
},
TR_HIDDEN_NFT_EMPTY: {
id: 'TR_HIDDEN_NFT_EMPTY',
defaultMessage: 'You have no hidden NFT collections.',
},
TR_ADD_TOKEN_TITLE: {
id: 'TR_ADD_TOKEN_TITLE',
defaultMessage: 'Add ERC20 token',
Expand Down Expand Up @@ -5395,6 +5449,10 @@ export default defineMessages({
defaultMessage: 'Amount',
id: 'AMOUNT',
},
TR_QUANTITY: {
defaultMessage: 'Quantity',
id: 'TR_QUANTITY',
},
AMOUNT_SEND_MAX: {
id: 'AMOUNT_SEND_MAX',
defaultMessage: 'Send max',
Expand Down Expand Up @@ -6364,6 +6422,10 @@ export default defineMessages({
id: 'TR_UNHIDE_TOKEN',
defaultMessage: 'Unhide token',
},
TR_HIDE_COLLECTION: {
id: 'TR_HIDE_COLLECTION',
defaultMessage: 'Hide collection',
},
TR_UNHIDE: {
id: 'TR_UNHIDE',
defaultMessage: 'Unhide',
Expand Down
Loading

0 comments on commit 284d0eb

Please sign in to comment.