Update checks for minimum mint price on Collection Creation

This commit is contained in:
Serkan Reis
2023-04-07 12:24:38 +03:00
parent ec28295278
commit 3471aeb653
2 changed files with 19 additions and 4 deletions
@@ -13,6 +13,7 @@ interface MintingDetailsProps {
onChange: (data: MintingDetailsDataProps) => void
numberOfTokens: number | undefined
uploadMethod: UploadMethod
minimumMintPrice: number
}
export interface MintingDetailsDataProps {
@@ -23,7 +24,7 @@ export interface MintingDetailsDataProps {
paymentAddress?: string
}
export const MintingDetails = ({ onChange, numberOfTokens, uploadMethod }: MintingDetailsProps) => {
export const MintingDetails = ({ onChange, numberOfTokens, uploadMethod, minimumMintPrice }: MintingDetailsProps) => {
const wallet = useWallet()
const [timestamp, setTimestamp] = useState<Date | undefined>()
@@ -40,7 +41,7 @@ export const MintingDetails = ({ onChange, numberOfTokens, uploadMethod }: Minti
id: 'unitPrice',
name: 'unitPrice',
title: 'Unit Price',
subtitle: 'Price of each token (min. 50 STARS)',
subtitle: `Price of each token (min. ${minimumMintPrice} STARS)`,
placeholder: '50',
})