1
0
mirror of https://github.com/oceanprotocol/react.git synced 2025-01-23 00:18:12 +01:00

change ReactNode to any, metadata fix

This commit is contained in:
mihaisc 2020-05-07 14:42:29 +03:00
parent 01ec93658f
commit d3aff1acb4
3 changed files with 4 additions and 4 deletions

View File

@ -56,4 +56,4 @@ function useMetadata(did?: DID | string): UseMetadata {
}
export { useMetadata, UseMetadata }
export default useConsume
export default useMetadata

View File

@ -35,8 +35,8 @@ function OceanProvider({
}: {
config: Config
web3: Web3 | undefined
children: ReactNode
}): ReactNode {
children: any
}): any {
const [ocean, setOcean] = useState<Ocean | undefined>()
const [aquarius, setAquarius] = useState<Aquarius | undefined>()
const [account, setAccount] = useState<Account | undefined>()

View File

@ -18,7 +18,7 @@ interface Web3ProviderValue {
const Web3Context = createContext(null)
function Web3Provider({ children }: { children: ReactNode }): ReactNode {
function Web3Provider({ children }: { children: any }): any {
const [web3, setWeb3] = useState<Web3 | undefined>()
const [chainId, setChainId] = useState<number | undefined>()
const [account, setAccount] = useState<string | undefined>()