mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
publish wording
This commit is contained in:
parent
c19cdcd9da
commit
ef684bcb94
@ -27,18 +27,19 @@
|
|||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "price",
|
"name": "access",
|
||||||
"label": "Price",
|
"label": "Access Type",
|
||||||
"help": "Set your price in Ocean Tokens.",
|
"help": "Choose how you want your files to be accessible for the specified price.",
|
||||||
"type": "price",
|
"type": "select",
|
||||||
"min": 1,
|
"options": ["Download", "Compute"],
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "access",
|
"name": "cost",
|
||||||
"label": "Access Type",
|
"label": "Price",
|
||||||
"type": "select",
|
"help": "Set your price for accessing this data set in Ocean Tokens.",
|
||||||
"options": ["Download", "Compute"],
|
"type": "price",
|
||||||
|
"min": 1,
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
2
src/@types/MetaData.d.ts
vendored
2
src/@types/MetaData.d.ts
vendored
@ -22,7 +22,7 @@ export interface MetadataPublishForm {
|
|||||||
files: string | File[]
|
files: string | File[]
|
||||||
author: string
|
author: string
|
||||||
license: string
|
license: string
|
||||||
price: string
|
cost: string
|
||||||
access: string
|
access: string
|
||||||
termsAndConditions: boolean
|
termsAndConditions: boolean
|
||||||
// ---- optional fields ----
|
// ---- optional fields ----
|
||||||
|
@ -21,7 +21,7 @@ const validationSchema = Yup.object().shape<MetadataPublishForm>({
|
|||||||
// ---- required fields ----
|
// ---- required fields ----
|
||||||
name: Yup.string().required('Required'),
|
name: Yup.string().required('Required'),
|
||||||
author: Yup.string().required('Required'),
|
author: Yup.string().required('Required'),
|
||||||
price: Yup.string().required('Required'),
|
cost: Yup.string().required('Required'),
|
||||||
files: Yup.array<FileMetadata>().required('Required').nullable(),
|
files: Yup.array<FileMetadata>().required('Required').nullable(),
|
||||||
description: Yup.string().required('Required'),
|
description: Yup.string().required('Required'),
|
||||||
license: Yup.string().required('Required'),
|
license: Yup.string().required('Required'),
|
||||||
@ -37,7 +37,7 @@ const validationSchema = Yup.object().shape<MetadataPublishForm>({
|
|||||||
const initialValues: MetadataPublishForm = {
|
const initialValues: MetadataPublishForm = {
|
||||||
name: undefined,
|
name: undefined,
|
||||||
author: undefined,
|
author: undefined,
|
||||||
price: undefined,
|
cost: undefined,
|
||||||
files: undefined,
|
files: undefined,
|
||||||
description: undefined,
|
description: undefined,
|
||||||
license: undefined,
|
license: undefined,
|
||||||
|
@ -9,7 +9,6 @@ const AssetModel: MetadataMarket = {
|
|||||||
dateCreated: '',
|
dateCreated: '',
|
||||||
author: '',
|
author: '',
|
||||||
license: '',
|
license: '',
|
||||||
price: '0',
|
|
||||||
files: []
|
files: []
|
||||||
},
|
},
|
||||||
additionalInformation: {
|
additionalInformation: {
|
||||||
|
Loading…
Reference in New Issue
Block a user