mirror of
https://github.com/oceanprotocol/react.git
synced 2025-01-23 00:18:12 +01:00
Merge pull request #10 from oceanprotocol/quickfix
change ReactNode to any, metadata fix
This commit is contained in:
commit
8b5d8139af
@ -56,4 +56,4 @@ function useMetadata(did?: DID | string): UseMetadata {
|
||||
}
|
||||
|
||||
export { useMetadata, UseMetadata }
|
||||
export default useConsume
|
||||
export default useMetadata
|
||||
|
@ -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>()
|
||||
|
@ -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>()
|
||||
|
Loading…
Reference in New Issue
Block a user