1
0
mirror of https://github.com/oceanprotocol/react.git synced 2024-06-29 00:57:49 +02:00

Merge pull request #10 from oceanprotocol/quickfix

change ReactNode to any, metadata fix
This commit is contained in:
mihaisc 2020-05-07 14:46:52 +03:00 committed by GitHub
commit 8b5d8139af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>()