diff --git a/packages/desktop/components/ContactMetadataTable.svelte b/packages/desktop/components/ContactMetadataTable.svelte index e6709d5248..9ec099c5aa 100644 --- a/packages/desktop/components/ContactMetadataTable.svelte +++ b/packages/desktop/components/ContactMetadataTable.svelte @@ -8,17 +8,10 @@ const KEYS_TO_DISPLAY = ['name', 'note'] let items: { key: string; value: string }[] - - $: items, setContactMetadataValues() - - function setContactMetadataValues(): void { - items = [] - for (const key in contactMetadata) { - if (KEYS_TO_DISPLAY.includes(key) && contactMetadata[key]) { - items.push({ key: localize(`general.${key}`), value: contactMetadata[key] }) - } - } - } + $: items = Object.keys(contactMetadata).map((key) => ({ + key: localize(`general.${key}`), + value: KEYS_TO_DISPLAY.includes(key) && contactMetadata[key] ? contactMetadata[key] : undefined, + })) diff --git a/packages/desktop/components/ProposalsDetails.svelte b/packages/desktop/components/ProposalsDetails.svelte index 60ee505c91..5f28788954 100644 --- a/packages/desktop/components/ProposalsDetails.svelte +++ b/packages/desktop/components/ProposalsDetails.svelte @@ -1,5 +1,5 @@ {localize('views.governance.details.proposalInformation.title')} -
+
diff --git a/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte b/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte index d791c26948..a8543a58a9 100644 --- a/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte +++ b/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte @@ -1,5 +1,5 @@ -{localize(`${locale}.title`)} -{localize(`${locale}.info`)} +{localize(`${locale}.title`)} +{localize(`${locale}.info`)}
- {#if items.length > 0} -
+ {#if hasSendConfirmationProps} +
{:else if $showInternalVerificationPopup} {/if} diff --git a/packages/shared/src/components/molecules/activity-info/ConsolidationActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/ConsolidationActivityInformation.svelte index 53c831933a..4a6ff2d237 100644 --- a/packages/shared/src/components/molecules/activity-info/ConsolidationActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/ConsolidationActivityInformation.svelte @@ -1,30 +1,20 @@ -
+
diff --git a/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte index 17178541e3..0f1e59f728 100644 --- a/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte @@ -1,6 +1,6 @@ -
+
diff --git a/packages/shared/src/components/molecules/activity-info/GovernanceActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/GovernanceActivityInformation.svelte index a334dad578..686affb6d4 100644 --- a/packages/shared/src/components/molecules/activity-info/GovernanceActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/GovernanceActivityInformation.svelte @@ -1,5 +1,5 @@ -
+
diff --git a/packages/shared/src/components/molecules/activity-info/NftActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/NftActivityInformation.svelte index 99e40f0cc1..6d18301e94 100644 --- a/packages/shared/src/components/molecules/activity-info/NftActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/NftActivityInformation.svelte @@ -1,5 +1,5 @@ - let items: IItem[] = [] - function setItems(_activity: NftActivity): void { - items = [] - items.push({ +
- -
+ }, + { + key: localize('general.issuerAddress'), + value: + nft?.issuer?.type === ADDRESS_TYPE_ED25519 ? getBech32AddressFromAddressTypes(nft?.issuer) : undefined, + truncate: { firstCharCount: 10, endCharCount: 10 }, + copyable: true, + }, + { + key: localize('general.collectionId'), + value: [ADDRESS_TYPE_NFT, ADDRESS_TYPE_ALIAS].includes(nft?.issuer?.type) + ? getHexAddressFromAddressTypes(nft?.issuer) + : undefined, + truncate: { firstCharCount: 10, endCharCount: 10 }, + copyable: true, + }, + ]} +/> diff --git a/packages/shared/src/components/molecules/activity-info/NftMetadataInformation.svelte b/packages/shared/src/components/molecules/activity-info/NftMetadataInformation.svelte index 816c27b1ae..82e01aea87 100644 --- a/packages/shared/src/components/molecules/activity-info/NftMetadataInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/NftMetadataInformation.svelte @@ -1,62 +1,50 @@ - let items: IItem[] = [] - function setItems(metadata: IIrc27Metadata | undefined) { - if (!metadata) return - items = [] - - if (metadata?.standard) { - items.push({ +{#if nft?.parsedMetadata} + {@const metadata = nft.parsedMetadata} +
- -
+ value: metadata.standard !== TokenStandard.Irc27 ? metadata : undefined, + }, + ]} + /> +{/if} diff --git a/packages/shared/src/components/molecules/activity-info/SmartContractActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/SmartContractActivityInformation.svelte index ed052c6a00..c2a3930ce5 100644 --- a/packages/shared/src/components/molecules/activity-info/SmartContractActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/SmartContractActivityInformation.svelte @@ -1,32 +1,22 @@ -
+
diff --git a/packages/shared/src/components/molecules/activity-info/TokenActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/TokenActivityInformation.svelte index e35e1d581b..90557acc6a 100644 --- a/packages/shared/src/components/molecules/activity-info/TokenActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/TokenActivityInformation.svelte @@ -1,5 +1,5 @@ - let items: IItem[] = [] - function setItems(_metadata: IIrc30Metadata) { - if (!_metadata) return - items = [] - - if (_metadata?.name) { - items.push({ +{#if metadata} +
- -
+ }, + ]} + /> +{/if}