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:
parent
704b52a3c4
commit
5285efd9c0
@ -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: '',
|
||||||
|
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user