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

another render fix

This commit is contained in:
Matthias Kretschmann 2021-11-11 13:55:35 +00:00
parent 704b52a3c4
commit 5285efd9c0
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 13 additions and 11 deletions

View File

@ -41,12 +41,12 @@ export const initialValues: FormPublishData = {
author: '', author: '',
description: '', description: '',
tags: '', tags: '',
links: [],
termsAndConditions: false termsAndConditions: false
}, },
services: [ services: [
{ {
files: [], files: [],
links: [],
dataTokenOptions: { name: '', symbol: '' }, dataTokenOptions: { name: '', symbol: '' },
timeout: '', timeout: '',
access: '', access: '',

View File

@ -2,8 +2,7 @@ import { DataTokenOptions } from '@hooks/usePublish'
import { ReactElement } from 'react' import { ReactElement } from 'react'
export interface FormPublishService { export interface FormPublishService {
files: string | string[] files: string[]
links?: string[]
timeout: string timeout: string
dataTokenOptions: DataTokenOptions dataTokenOptions: DataTokenOptions
access: 'Download' | 'Compute' | string access: 'Download' | 'Compute' | string
@ -24,6 +23,7 @@ export interface FormPublishData {
author: string author: string
termsAndConditions: boolean termsAndConditions: boolean
tags?: string tags?: string
links?: string[]
} }
services: FormPublishService[] services: FormPublishService[]
pricing: PriceOptions pricing: PriceOptions

View File

@ -55,11 +55,11 @@ export async function transformPublishFormToDdo(
const { chainId, accountId, metadata, services } = values const { chainId, accountId, metadata, services } = values
const did = sha256(`${nftAddress}${chainId}`) const did = sha256(`${nftAddress}${chainId}`)
const currentTime = dateToStringNoMS(new Date()) const currentTime = dateToStringNoMS(new Date())
const { type, name, description, tags, author, termsAndConditions } = metadata const { type, name, description, tags, links, author, termsAndConditions } =
metadata
const { const {
access, access,
files, files,
links,
image, image,
containerTag, containerTag,
entrypoint, entrypoint,

View File

@ -121,12 +121,14 @@ export default function PublishPage({
await handleSubmit(values) await handleSubmit(values)
}} }}
> >
<Form className={styles.form} ref={scrollToRef}> <>
<Navigation /> <Form className={styles.form} ref={scrollToRef}>
<Steps /> <Navigation />
<Actions scrollToRef={scrollToRef} /> <Steps />
</Form> <Actions scrollToRef={scrollToRef} />
<Debug /> </Form>
<Debug />
</>
</Formik> </Formik>
)} )}
</> </>