Add API Key input method

This commit is contained in:
Serkan Reis 2024-02-06 23:48:13 +03:00
parent 1d1a901312
commit 245fd2253b

View File

@ -30,6 +30,8 @@ import type { BaseMinterAcquisitionMethod } from './BaseMinterDetails'
export type UploadMethod = 'new' | 'existing'
export type ApiKeyInputMethod = 'manual' | 'default'
interface UploadDetailsProps {
onChange: (value: UploadDetailsDataProps) => void
minterType: MinterType
@ -66,6 +68,7 @@ export const UploadDetails = ({
const [uploadService, setUploadService] = useState<UploadServiceType>('nft-storage')
const [metadataFileArrayIndex, setMetadataFileArrayIndex] = useState(0)
const [refreshMetadata, setRefreshMetadata] = useState(false)
const [apiKeyInputMethod, setApiKeyInputMethod] = useState<ApiKeyInputMethod>('default')
const [baseMinterMetadataFile, setBaseMinterMetadataFile] = useState<File | undefined>()