Update Collection Actions > Actions
This commit is contained in:
parent
1b6f429843
commit
c041a53b67
@ -185,7 +185,7 @@ export const CollectionActions = ({
|
|||||||
'batch_transfer',
|
'batch_transfer',
|
||||||
'batch_mint_for',
|
'batch_mint_for',
|
||||||
])
|
])
|
||||||
const showAirdropFileField = type === 'airdrop'
|
const showAirdropFileField = isEitherType(type, ['airdrop', 'airdrop_specific'])
|
||||||
const showPriceField = isEitherType(type, ['update_mint_price', 'update_discount_price'])
|
const showPriceField = isEitherType(type, ['update_mint_price', 'update_discount_price'])
|
||||||
const showDescriptionField = type === 'update_collection_info'
|
const showDescriptionField = type === 'update_collection_info'
|
||||||
const showImageField = type === 'update_collection_info'
|
const showImageField = type === 'update_collection_info'
|
||||||
@ -211,6 +211,7 @@ export const CollectionActions = ({
|
|||||||
sg721Messages,
|
sg721Messages,
|
||||||
recipient: resolvedRecipientAddress,
|
recipient: resolvedRecipientAddress,
|
||||||
recipients: airdropArray,
|
recipients: airdropArray,
|
||||||
|
tokenRecipients: airdropAllocationArray,
|
||||||
txSigner: wallet.address,
|
txSigner: wallet.address,
|
||||||
type,
|
type,
|
||||||
price: priceState.value.toString(),
|
price: priceState.value.toString(),
|
||||||
@ -477,7 +478,9 @@ export const CollectionActions = ({
|
|||||||
)}
|
)}
|
||||||
{showAirdropFileField && (
|
{showAirdropFileField && (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
subtitle="CSV file that contains the airdrop addresses and the amount of tokens allocated for each address. Should start with the following header row: address,amount"
|
subtitle={`CSV file that contains the airdrop addresses and the amount of tokens allocated for each address. Should start with the following header row: ${
|
||||||
|
type === 'airdrop' ? 'address,amount' : 'address,tokenId'
|
||||||
|
}`}
|
||||||
title="Airdrop File"
|
title="Airdrop File"
|
||||||
>
|
>
|
||||||
<AirdropUpload onChange={airdropFileOnChange} />
|
<AirdropUpload onChange={airdropFileOnChange} />
|
||||||
|
Loading…
Reference in New Issue
Block a user