mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix typing issue
This commit is contained in:
parent
321ab28c19
commit
321ef09313
@ -12,7 +12,7 @@ import { MetadataEditForm } from './_types'
|
|||||||
import { useWeb3 } from '@context/Web3'
|
import { useWeb3 } from '@context/Web3'
|
||||||
import { useUserPreferences } from '@context/UserPreferences'
|
import { useUserPreferences } from '@context/UserPreferences'
|
||||||
import Web3Feedback from '@shared/Web3Feedback'
|
import Web3Feedback from '@shared/Web3Feedback'
|
||||||
import FormEditMetadata from './FormEditMetadata'
|
import FormEditMetadata, { FormEditMetadataValues } from './FormEditMetadata'
|
||||||
import { mapTimeoutStringToSeconds } from '@utils/ddo'
|
import { mapTimeoutStringToSeconds } from '@utils/ddo'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
import content from '../../../../content/pages/editMetadata.json'
|
import content from '../../../../content/pages/editMetadata.json'
|
||||||
@ -24,7 +24,6 @@ import { useAsset } from '@context/Asset'
|
|||||||
import { setNftMetadata } from '@utils/nft'
|
import { setNftMetadata } from '@utils/nft'
|
||||||
import { sanitizeUrl } from '@utils/url'
|
import { sanitizeUrl } from '@utils/url'
|
||||||
import { getEncryptedFiles } from '@utils/provider'
|
import { getEncryptedFiles } from '@utils/provider'
|
||||||
import { initialValues } from 'src/components/Publish/_constants'
|
|
||||||
|
|
||||||
export default function Edit({
|
export default function Edit({
|
||||||
asset
|
asset
|
||||||
@ -144,7 +143,7 @@ export default function Edit({
|
|||||||
asset?.metadata,
|
asset?.metadata,
|
||||||
asset?.services[0]?.timeout,
|
asset?.services[0]?.timeout,
|
||||||
asset?.accessDetails?.price
|
asset?.accessDetails?.price
|
||||||
)
|
) as FormEditMetadataValues
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Formik
|
<Formik
|
||||||
|
@ -15,7 +15,7 @@ export function checkIfTimeoutInPredefinedValues(
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FormEditMetadataValues {
|
export interface FormEditMetadataValues {
|
||||||
author: string
|
author: string
|
||||||
description: string
|
description: string
|
||||||
files: string
|
files: string
|
||||||
|
Loading…
Reference in New Issue
Block a user