mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-30 05:41:41 +02:00
cleanup
This commit is contained in:
parent
a7998abb99
commit
3a130c364b
|
@ -16,7 +16,7 @@ export default function FilesInput(props: InputProps): ReactElement {
|
|||
const source = axios.CancelToken.source()
|
||||
|
||||
async function validateUrl() {
|
||||
// TODO: get the providerUri
|
||||
// TODO: #756 get the providerUri
|
||||
const providerUri = ''
|
||||
|
||||
try {
|
||||
|
|
|
@ -50,7 +50,7 @@ function AssetProvider({
|
|||
const { networkId } = useWeb3()
|
||||
const [isInPurgatory, setIsInPurgatory] = useState(false)
|
||||
const [purgatoryData, setPurgatoryData] = useState<PurgatoryData>()
|
||||
const [ddo, setDDO] = useState<any>()
|
||||
const [ddo, setDDO] = useState<DDO>()
|
||||
const [did, setDID] = useState<string>()
|
||||
const [metadata, setMetadata] = useState<MetadataMarket>()
|
||||
const [title, setTitle] = useState<string>()
|
||||
|
@ -149,7 +149,6 @@ function AssetProvider({
|
|||
useEffect(() => {
|
||||
if (!networkId || !ddo) return
|
||||
|
||||
// TODO: remove typing once present in ocean.js' DDO typing
|
||||
const isAssetNetwork = networkId === ddo?.chainId
|
||||
setIsAssetNetwork(isAssetNetwork)
|
||||
}, [networkId, ddo])
|
||||
|
|
|
@ -7,13 +7,7 @@ import React, {
|
|||
ReactNode,
|
||||
useEffect
|
||||
} from 'react'
|
||||
import {
|
||||
Ocean,
|
||||
Logger,
|
||||
Account,
|
||||
ConfigHelperConfig,
|
||||
DDO
|
||||
} from '@oceanprotocol/lib'
|
||||
import { Ocean, Logger, Account, ConfigHelperConfig } from '@oceanprotocol/lib'
|
||||
|
||||
import { useWeb3 } from './Web3'
|
||||
import { getDevelopmentConfig, getOceanConfig } from '../utils/ocean'
|
||||
|
@ -65,7 +59,6 @@ function OceanProvider({ children }: { children: ReactNode }): ReactElement {
|
|||
// Initial connection
|
||||
// -----------------------------------
|
||||
useEffect(() => {
|
||||
// TODO: remove DDO typing once ocean.js has it
|
||||
if (!ddo?.chainId) return
|
||||
|
||||
const config = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user