Rename mint & append token UI elements

This commit is contained in:
Serkan Reis 2023-01-08 20:09:05 +03:00
parent ce38980eff
commit 0066fddae8

View File

@ -311,7 +311,10 @@ const CollectionCreationPage: NextPage = () => {
return result return result
}) })
.then((result) => { .then((result) => {
toast.success(`Minted successfully! Tx Hash: ${result}`, { style: { maxWidth: 'none' }, duration: 5000 }) toast.success(`Minted & appended successfully! Tx Hash: ${result}`, {
style: { maxWidth: 'none' },
duration: 5000,
})
setIsMintingComplete(true) setIsMintingComplete(true)
}) })
.catch((error) => { .catch((error) => {
@ -327,7 +330,10 @@ const CollectionCreationPage: NextPage = () => {
.use(baseMinterDetails?.existingBaseMinter as string) .use(baseMinterDetails?.existingBaseMinter as string)
?.mint(wallet.address, `${uploadDetails?.baseTokenURI?.trim()}`) ?.mint(wallet.address, `${uploadDetails?.baseTokenURI?.trim()}`)
.then((result) => { .then((result) => {
toast.success(`Minted successfully! Tx Hash: ${result}`, { style: { maxWidth: 'none' }, duration: 5000 }) toast.success(`Minted & appended successfully! Tx Hash: ${result}`, {
style: { maxWidth: 'none' },
duration: 5000,
})
}) })
.catch((error) => { .catch((error) => {
toast.error(error.message, { style: { maxWidth: 'none' } }) toast.error(error.message, { style: { maxWidth: 'none' } })
@ -789,7 +795,7 @@ const CollectionCreationPage: NextPage = () => {
<NextSeo <NextSeo
title={ title={
minterType === 'base' && baseMinterDetails?.baseMinterAcquisitionMethod === 'existing' minterType === 'base' && baseMinterDetails?.baseMinterAcquisitionMethod === 'existing'
? 'Mint Token' ? 'Append Token'
: 'Create Collection' : 'Create Collection'
} }
/> />
@ -797,7 +803,7 @@ const CollectionCreationPage: NextPage = () => {
<div className="mt-5 space-y-5 text-center"> <div className="mt-5 space-y-5 text-center">
<h1 className="font-heading text-4xl font-bold"> <h1 className="font-heading text-4xl font-bold">
{minterType === 'base' && baseMinterDetails?.baseMinterAcquisitionMethod === 'existing' {minterType === 'base' && baseMinterDetails?.baseMinterAcquisitionMethod === 'existing'
? 'Mint Token' ? 'Append Token'
: 'Create Collection'} : 'Create Collection'}
</h1> </h1>
@ -1071,7 +1077,7 @@ const CollectionCreationPage: NextPage = () => {
onClick={performUploadAndMintChecks} onClick={performUploadAndMintChecks}
variant="solid" variant="solid"
> >
Upload & Mint Token Mint & Append Token
</Button> </Button>
</Conditional> </Conditional>
</div> </div>