1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

remove lazy loading of wallet provider packages

* closes #111
This commit is contained in:
Matthias Kretschmann 2020-10-16 10:19:04 +02:00
parent e5563c88b1
commit 3ea627df8d
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,5 +1,6 @@
import loadable from '@loadable/component'
import { infuraProjectId, network } from '../../app.config'
import WalletConnectProvider from '@walletconnect/web3-provider'
import Torus from '@toruslabs/torus-embed'
const web3ModalTheme = {
background: 'var(--brand-white)',
@ -9,11 +10,6 @@ const web3ModalTheme = {
hover: 'var(--brand-grey-dimmed)'
}
const WalletConnectProvider = loadable(
() => import('@walletconnect/web3-provider') as any
)
const Torus = loadable(() => import('@toruslabs/torus-embed') as any)
const providerOptions = {
walletconnect: {
package: WalletConnectProvider,