diff --git a/packages/desktop/views/dashboard/collectibles/components/CollectionsGallery.svelte b/packages/desktop/views/dashboard/collectibles/components/CollectionsGallery.svelte new file mode 100644 index 0000000000..7722ef0aa8 --- /dev/null +++ b/packages/desktop/views/dashboard/collectibles/components/CollectionsGallery.svelte @@ -0,0 +1,63 @@ + + + +
+ {#each item as collection} + {#if collection} + + {:else} +
+ {/if} + {/each} +
+ diff --git a/packages/desktop/views/dashboard/collectibles/components/CollectionsGalleryItem.svelte b/packages/desktop/views/dashboard/collectibles/components/CollectionsGalleryItem.svelte new file mode 100644 index 0000000000..816018a68a --- /dev/null +++ b/packages/desktop/views/dashboard/collectibles/components/CollectionsGalleryItem.svelte @@ -0,0 +1,78 @@ + + + + + diff --git a/packages/desktop/views/dashboard/collectibles/components/index.ts b/packages/desktop/views/dashboard/collectibles/components/index.ts index cb1cd98401..9dfe83c31e 100644 --- a/packages/desktop/views/dashboard/collectibles/components/index.ts +++ b/packages/desktop/views/dashboard/collectibles/components/index.ts @@ -1,3 +1,4 @@ export { default as CollectiblesTabs } from './CollectiblesTabs.svelte' +export { default as CollectionsGallery } from './CollectionsGallery.svelte' export { default as Erc721CollectibleDetails } from './Erc721CollectibleDetails.svelte' export { default as Irc27CollectibleDetails } from './Irc27CollectibleDetails.svelte' diff --git a/packages/desktop/views/dashboard/collectibles/views/CollectionsGalleryView.svelte b/packages/desktop/views/dashboard/collectibles/views/CollectionsGalleryView.svelte index 28f84f689d..068bde93a3 100644 --- a/packages/desktop/views/dashboard/collectibles/views/CollectionsGalleryView.svelte +++ b/packages/desktop/views/dashboard/collectibles/views/CollectionsGalleryView.svelte @@ -5,7 +5,7 @@ import { PopupId, openPopup } from '@desktop/auxiliary/popup' import features from '@features/features' import { SearchInput } from '@ui' - import { CollectiblesTabs } from '../components' + import { CollectiblesTabs, CollectionsGallery } from '../components' import { collectionsSearchTerm, selectedAccountCollections } from '@core/nfts/stores' import { Collections, isVisibleCollection } from '@core/nfts' @@ -48,10 +48,7 @@ {#if hasCollections} {#if Object.keys(queriedCollections).length > 0} - - {#each Object.keys(queriedCollections) as collection} - {queriedCollections[collection].name} - {/each} + {:else}
- diff --git a/packages/shared/src/locales/en.json b/packages/shared/src/locales/en.json index 087735e3be..24576b9ee4 100644 --- a/packages/shared/src/locales/en.json +++ b/packages/shared/src/locales/en.json @@ -1637,6 +1637,7 @@ "token": "Token", "unknownToken": "Unknown Token", "nft": "NFT", + "nfts": "{count, plural, one {# NFT} other {# NFTs}}", "type": "Type", "immutableIssuer": "Immutable Issuer", "magicContract": "Magic Contract",