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: '',
description: '',
tags: '',
links: [],
termsAndConditions: false
},
services: [
{
files: [],
links: [],
dataTokenOptions: { name: '', symbol: '' },
timeout: '',
access: '',

View File

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

View File

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

View File

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