Fetch and display factory denom for minimum mint price
This commit is contained in:
parent
15427072e4
commit
ade9410a91
@ -19,6 +19,7 @@ interface MintingDetailsProps {
|
|||||||
numberOfTokens: number | undefined
|
numberOfTokens: number | undefined
|
||||||
uploadMethod: UploadMethod
|
uploadMethod: UploadMethod
|
||||||
minimumMintPrice: number
|
minimumMintPrice: number
|
||||||
|
mintingTokenFromFactory?: TokenInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MintingDetailsDataProps {
|
export interface MintingDetailsDataProps {
|
||||||
@ -30,7 +31,13 @@ export interface MintingDetailsDataProps {
|
|||||||
selectedMintToken?: TokenInfo
|
selectedMintToken?: TokenInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MintingDetails = ({ onChange, numberOfTokens, uploadMethod, minimumMintPrice }: MintingDetailsProps) => {
|
export const MintingDetails = ({
|
||||||
|
onChange,
|
||||||
|
numberOfTokens,
|
||||||
|
uploadMethod,
|
||||||
|
minimumMintPrice,
|
||||||
|
mintingTokenFromFactory,
|
||||||
|
}: MintingDetailsProps) => {
|
||||||
const wallet = useWallet()
|
const wallet = useWallet()
|
||||||
|
|
||||||
const [timestamp, setTimestamp] = useState<Date | undefined>()
|
const [timestamp, setTimestamp] = useState<Date | undefined>()
|
||||||
@ -48,7 +55,9 @@ export const MintingDetails = ({ onChange, numberOfTokens, uploadMethod, minimum
|
|||||||
id: 'unitPrice',
|
id: 'unitPrice',
|
||||||
name: 'unitPrice',
|
name: 'unitPrice',
|
||||||
title: 'Unit Price',
|
title: 'Unit Price',
|
||||||
subtitle: `Price of each token (min. ${minimumMintPrice} STARS)`,
|
subtitle: `Price of each token (min. ${minimumMintPrice} ${
|
||||||
|
mintingTokenFromFactory ? mintingTokenFromFactory.displayName : 'STARS'
|
||||||
|
})`,
|
||||||
placeholder: '50',
|
placeholder: '50',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user