Refactoring collection creation logic (#20)
* Split collection info component * Fix texts * Refactor components * Create upload details component * Add on change method to collection details * Add on change method to minting details * Add on change method to whitelist details * Add on change method to royalty details * Update create page name * Refactor code for collection creation logic
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import axios from 'axios'
|
||||
import { PINATA_ENDPOINT_URL } from 'utils/constants'
|
||||
|
||||
export type UploadFileType = 'assets' | 'metadata'
|
||||
export type UploadFileType = 'assets' | 'metadata' | 'cover'
|
||||
|
||||
export const uploadToPinata = async (
|
||||
fileArray: File[],
|
||||
@@ -12,7 +12,6 @@ export const uploadToPinata = async (
|
||||
pinataSecretKey: string,
|
||||
fileType: UploadFileType,
|
||||
): Promise<string> => {
|
||||
console.log('Uploading to Pinata...')
|
||||
const data = new FormData()
|
||||
fileArray.forEach((file) => {
|
||||
data.append('file', file, `${fileType}/${file.name}`)
|
||||
|
||||
Reference in New Issue
Block a user