Skip to content

Commit a6e0a0a

Browse files
committed
Update
1 parent b5bbecd commit a6e0a0a

File tree

3 files changed

+653
-0
lines changed

3 files changed

+653
-0
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/ContractNFTPage.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { ThirdwebContract } from "thirdweb";
22
import * as ERC721Ext from "thirdweb/extensions/erc721";
33
import * as ERC1155Ext from "thirdweb/extensions/erc1155";
44
import { BatchLazyMintButton } from "./components/batch-lazy-mint-button";
5+
import { BatchUpdateMetadataButton } from "./components/batch-update-metadata-button";
56
import { NFTClaimButton } from "./components/claim-button";
67
import { NFTLazyMintButton } from "./components/lazy-mint-button";
78
import { NFTMintButton } from "./components/mint-button";
@@ -50,6 +51,8 @@ export const ContractNFTPage: React.FC<NftOverviewPageProps> = ({
5051
const isRevealable = ERC721Ext.isRevealSupported(functionSelectors);
5152
const canCreateDelayedRevealBatch =
5253
ERC721Ext.isCreateDelayedRevealBatchSupported(functionSelectors);
54+
const canBatchUpdateMetadata =
55+
ERC721Ext.isUpdateMetadataSupported(functionSelectors);
5356

5457
return (
5558
<div className="flex flex-col gap-6">
@@ -80,6 +83,9 @@ export const ContractNFTPage: React.FC<NftOverviewPageProps> = ({
8083
contract={contract}
8184
/>
8285
)}
86+
{canBatchUpdateMetadata && isErc721 && (
87+
<BatchUpdateMetadataButton contract={contract} />
88+
)}
8389
</div>
8490
</div>
8591
{canShowSupplyCards && <SupplyCards contract={contract} />}

0 commit comments

Comments
 (0)