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: '',
|
||||
description: '',
|
||||
tags: '',
|
||||
links: [],
|
||||
termsAndConditions: false
|
||||
},
|
||||
services: [
|
||||
{
|
||||
files: [],
|
||||
links: [],
|
||||
dataTokenOptions: { name: '', symbol: '' },
|
||||
timeout: '',
|
||||
access: '',
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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>
|
||||
)}
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user