1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

add real copy for all steps

This commit is contained in:
Matthias Kretschmann 2019-03-04 13:46:13 -03:00
parent 5046ccf0f2
commit 05b3cfcc74
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 12 additions and 13 deletions

View File

@ -1,17 +1,15 @@
{ {
"title": "Publish a new data asset",
"description": "A cool form description",
"steps": [ "steps": [
{ {
"title": "Essentials", "title": "Essentials",
"description": "A description about these essential fields", "description": "Start by adding a title and URLs for your data set.",
"fields": { "fields": {
"name": { "name": {
"label": "Title", "label": "Title",
"placeholder": "i.e. My cool data set", "placeholder": "i.e. Almond sales data",
"type": "text", "type": "text",
"required": true, "required": true,
"help": "Help me Obiwan" "help": "Enter a concise title. You will be able to enter a more thorough description in the next step."
}, },
"files": { "files": {
"label": "Files", "label": "Files",
@ -24,18 +22,21 @@
}, },
{ {
"title": "Information", "title": "Information",
"description": "A description about these fields", "description": "Further describe and categorize your data set to help people discover it.",
"fields": { "fields": {
"description": { "description": {
"label": "Description", "label": "Description",
"placeholder": "i.e. My cool data set", "description": "Add a thorough description with as much detail as possible.",
"placeholder": "i.e. Almond sales data ",
"type": "textarea", "type": "textarea",
"required": true, "required": true,
"rows": 5 "rows": 5
}, },
"categories": { "categories": {
"label": "Categories", "label": "Categories",
"description": "Pick a category which best fits your data set.",
"type": "select", "type": "select",
"required": true,
"options": [ "options": [
"Image Recognition", "Image Recognition",
"Dataset Of Datasets", "Dataset Of Datasets",
@ -74,7 +75,7 @@
}, },
{ {
"title": "Authorship", "title": "Authorship",
"description": "A description about these credentials fields", "description": "Give proper attribution for your data set.",
"fields": { "fields": {
"author": { "author": {
"label": "Author", "label": "Author",
@ -84,7 +85,7 @@
}, },
"copyrightHolder": { "copyrightHolder": {
"label": "Copyright Holder", "label": "Copyright Holder",
"placeholder": "i.e. fwhfiw", "placeholder": "i.e. Marine Institute of Jellyfish",
"type": "text", "type": "text",
"required": true "required": true
}, },
@ -106,7 +107,7 @@
}, },
{ {
"title": "Register", "title": "Register",
"description": "We got all the data, now let's register your data set.", "description": "Splendid, we got all the data. Now let's register your data set.",
"content": "After clicking the button below you will be asked by your wallet to sign this request." "content": "After clicking the button below you will be asked by your wallet to sign this request."
} }
] ]

View File

@ -1,11 +1,10 @@
import React, { PureComponent, ChangeEvent } from 'react' import React, { PureComponent } from 'react'
import { CSSTransition, TransitionGroup } from 'react-transition-group' import { CSSTransition, TransitionGroup } from 'react-transition-group'
import Button from '../../../components/atoms/Button' import Button from '../../../components/atoms/Button'
import Help from '../../../components/atoms/Form/Help' import Help from '../../../components/atoms/Form/Help'
import ItemForm from './ItemForm' import ItemForm from './ItemForm'
import Item from './Item' import Item from './Item'
import styles from './index.module.scss' import styles from './index.module.scss'
import { Logger } from '@oceanprotocol/squid';
interface FilesProps { interface FilesProps {
files: any[] files: any[]
@ -13,7 +12,6 @@ interface FilesProps {
help?: string help?: string
name: string name: string
onChange: any onChange: any
// resetForm: any
} }
interface FilesStates { interface FilesStates {