mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
change ReactNode to any, metadata fix
This commit is contained in:
parent
01ec93658f
commit
d3aff1acb4
@ -56,4 +56,4 @@ function useMetadata(did?: DID | string): UseMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export { useMetadata, UseMetadata }
|
export { useMetadata, UseMetadata }
|
||||||
export default useConsume
|
export default useMetadata
|
||||||
|
@ -35,8 +35,8 @@ function OceanProvider({
|
|||||||
}: {
|
}: {
|
||||||
config: Config
|
config: Config
|
||||||
web3: Web3 | undefined
|
web3: Web3 | undefined
|
||||||
children: ReactNode
|
children: any
|
||||||
}): ReactNode {
|
}): any {
|
||||||
const [ocean, setOcean] = useState<Ocean | undefined>()
|
const [ocean, setOcean] = useState<Ocean | undefined>()
|
||||||
const [aquarius, setAquarius] = useState<Aquarius | undefined>()
|
const [aquarius, setAquarius] = useState<Aquarius | undefined>()
|
||||||
const [account, setAccount] = useState<Account | undefined>()
|
const [account, setAccount] = useState<Account | undefined>()
|
||||||
|
@ -18,7 +18,7 @@ interface Web3ProviderValue {
|
|||||||
|
|
||||||
const Web3Context = createContext(null)
|
const Web3Context = createContext(null)
|
||||||
|
|
||||||
function Web3Provider({ children }: { children: ReactNode }): ReactNode {
|
function Web3Provider({ children }: { children: any }): any {
|
||||||
const [web3, setWeb3] = useState<Web3 | undefined>()
|
const [web3, setWeb3] = useState<Web3 | undefined>()
|
||||||
const [chainId, setChainId] = useState<number | undefined>()
|
const [chainId, setChainId] = useState<number | undefined>()
|
||||||
const [account, setAccount] = useState<string | undefined>()
|
const [account, setAccount] = useState<string | undefined>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user