Skip to content

Commit 9e1a2be

Browse files
committed
[Dashboard] Add Media URI to token page
1 parent df128bf commit 9e1a2be

File tree

1 file changed

+29
-0
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]

1 file changed

+29
-0
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/[tokenId]/token-id.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,35 @@ export const TokenIdPage: React.FC<TokenIdPageProps> = ({
269269
</Link>
270270
</Button>
271271
</GridItem>
272+
{nft.metadata.image && (
273+
<>
274+
<GridItem colSpan={4}>
275+
<Heading size="label.md">Media URI</Heading>
276+
</GridItem>
277+
<GridItem
278+
colSpan={8}
279+
className="flex flex-row items-center gap-1"
280+
>
281+
<CopyTextButton
282+
textToCopy={nft.metadata.image}
283+
textToShow={shortenString(nft.metadata.image)}
284+
tooltip="The URI of this NFT"
285+
copyIconPosition="right"
286+
/>
287+
<Button variant="ghost">
288+
<Link
289+
href={resolveScheme({
290+
client,
291+
uri: nft.metadata.image,
292+
})}
293+
target="_blank"
294+
>
295+
<ExternalLinkIcon className="size-4" />
296+
</Link>
297+
</Button>
298+
</GridItem>
299+
</>
300+
)}
272301
</SimpleGrid>
273302
</Card>
274303
{properties ? (

0 commit comments

Comments
 (0)