File tree Expand file tree Collapse file tree 3 files changed +653
-0
lines changed
apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts
packages/thirdweb/src/exports/extensions Expand file tree Collapse file tree 3 files changed +653
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { ThirdwebContract } from "thirdweb";
22import * as ERC721Ext from "thirdweb/extensions/erc721" ;
33import * as ERC1155Ext from "thirdweb/extensions/erc1155" ;
44import { BatchLazyMintButton } from "./components/batch-lazy-mint-button" ;
5+ import { BatchUpdateMetadataButton } from "./components/batch-update-metadata-button" ;
56import { NFTClaimButton } from "./components/claim-button" ;
67import { NFTLazyMintButton } from "./components/lazy-mint-button" ;
78import { 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 } /> }
You can’t perform that action at this time.
0 commit comments