= new Map();
export let selectNFT: (nft: NFT) => void;
export let toggleAddressCheckBox: (collectionAddress: string) => void = noop;
- export let selectable = false;
+ export let viewOnly: boolean;
let selected: boolean = false;
@@ -22,7 +22,7 @@
const placeholderUrl = 'https://placehold.co/400x400.png';
- let imageUrl: string = nft.metadata?.image || placeholderUrl;
+ $: imageUrl = nft.metadata?.image || placeholderUrl;
let imageLoaded = false;
const handleDialogSelection = () => {
@@ -41,15 +41,14 @@
-
- handleDialogSelection()} />
+ handleDialogSelection()} bind:viewOnly />