1
0
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:
EnzoVezzaro 2022-09-09 09:57:10 -04:00
parent 321ab28c19
commit 321ef09313
2 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import { MetadataEditForm } from './_types'
import { useWeb3 } from '@context/Web3'
import { useUserPreferences } from '@context/UserPreferences'
import Web3Feedback from '@shared/Web3Feedback'
import FormEditMetadata from './FormEditMetadata'
import FormEditMetadata, { FormEditMetadataValues } from './FormEditMetadata'
import { mapTimeoutStringToSeconds } from '@utils/ddo'
import styles from './index.module.css'
import content from '../../../../content/pages/editMetadata.json'
@ -24,7 +24,6 @@ import { useAsset } from '@context/Asset'
import { setNftMetadata } from '@utils/nft'
import { sanitizeUrl } from '@utils/url'
import { getEncryptedFiles } from '@utils/provider'
import { initialValues } from 'src/components/Publish/_constants'
export default function Edit({
asset
@ -144,7 +143,7 @@ export default function Edit({
asset?.metadata,
asset?.services[0]?.timeout,
asset?.accessDetails?.price
)
) as FormEditMetadataValues
return (
<Formik

View File

@ -15,7 +15,7 @@ export function checkIfTimeoutInPredefinedValues(
return false
}
interface FormEditMetadataValues {
export interface FormEditMetadataValues {
author: string
description: string
files: string