mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
price data structure tweaks
This commit is contained in:
parent
1b49413ec7
commit
6e33ad92cb
4
src/@types/MetaData.d.ts
vendored
4
src/@types/MetaData.d.ts
vendored
@ -25,8 +25,8 @@ export interface MetadataPublishForm {
|
||||
author: string
|
||||
license: string
|
||||
price: {
|
||||
cost: string
|
||||
tokensToMint: string
|
||||
cost: number
|
||||
tokensToMint: number
|
||||
}
|
||||
access: 'Download' | 'Compute' | string
|
||||
termsAndConditions: boolean
|
||||
|
@ -7,8 +7,8 @@ export const validationSchema = Yup.object().shape<MetadataPublishForm>({
|
||||
name: Yup.string().required('Required'),
|
||||
author: Yup.string().required('Required'),
|
||||
price: Yup.object().shape({
|
||||
cost: Yup.string().required('Required'),
|
||||
tokensToMint: Yup.string().required('Required')
|
||||
cost: Yup.number().required('Required'),
|
||||
tokensToMint: Yup.number().required('Required')
|
||||
}),
|
||||
files: Yup.array<FileMetadata>().required('Required').nullable(),
|
||||
description: Yup.string().required('Required'),
|
||||
@ -28,8 +28,8 @@ export const initialValues: MetadataPublishForm = {
|
||||
name: '',
|
||||
author: '',
|
||||
price: {
|
||||
cost: '',
|
||||
tokensToMint: ''
|
||||
cost: 0,
|
||||
tokensToMint: null
|
||||
},
|
||||
files: '',
|
||||
description: '',
|
||||
|
Loading…
Reference in New Issue
Block a user