1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00

publish wording

This commit is contained in:
Matthias Kretschmann 2020-07-16 14:23:54 +02:00
parent c19cdcd9da
commit ef684bcb94
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 13 additions and 13 deletions

View File

@ -27,18 +27,19 @@
"required": true
},
{
"name": "price",
"label": "Price",
"help": "Set your price in Ocean Tokens.",
"type": "price",
"min": 1,
"name": "access",
"label": "Access Type",
"help": "Choose how you want your files to be accessible for the specified price.",
"type": "select",
"options": ["Download", "Compute"],
"required": true
},
{
"name": "access",
"label": "Access Type",
"type": "select",
"options": ["Download", "Compute"],
"name": "cost",
"label": "Price",
"help": "Set your price for accessing this data set in Ocean Tokens.",
"type": "price",
"min": 1,
"required": true
},
{

View File

@ -22,7 +22,7 @@ export interface MetadataPublishForm {
files: string | File[]
author: string
license: string
price: string
cost: string
access: string
termsAndConditions: boolean
// ---- optional fields ----

View File

@ -21,7 +21,7 @@ const validationSchema = Yup.object().shape<MetadataPublishForm>({
// ---- required fields ----
name: 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(),
description: Yup.string().required('Required'),
license: Yup.string().required('Required'),
@ -37,7 +37,7 @@ const validationSchema = Yup.object().shape<MetadataPublishForm>({
const initialValues: MetadataPublishForm = {
name: undefined,
author: undefined,
price: undefined,
cost: undefined,
files: undefined,
description: undefined,
license: undefined,

View File

@ -9,7 +9,6 @@ const AssetModel: MetadataMarket = {
dateCreated: '',
author: '',
license: '',
price: '0',
files: []
},
additionalInformation: {