diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-20 09:10:47 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-20 09:10:47 +0800 |
commit | 6de499459cb29f74cabd91c441f85e4c2325a6d7 (patch) | |
tree | 1325823751805126d821a24cf3b2b710427a2dac /packages | |
parent | 9ab55fd07d3a11616d12c95ef512f100d12a0aee (diff) | |
download | dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.gz dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.bz2 dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.lz dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.xz dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.tar.zst dexon-sol-tools-6de499459cb29f74cabd91c441f85e4c2325a6d7.zip |
fix: do not use document on import
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index 8be53ee20..ac246128c 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -19,8 +19,6 @@ import { Heartbeater } from '../util/heartbeater'; import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory'; import { providerStateFactory } from '../util/provider_state_factory'; -fonts.include(); - export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps & Partial<ZeroExInstantProviderOptionalProps>; @@ -86,6 +84,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider } constructor(props: ZeroExInstantProviderProps) { super(props); + fonts.include(); const initialAppState = ZeroExInstantProvider._mergeDefaultStateWithProps(this.props); this._store = store.create(initialAppState); } |