aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 01:35:24 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 01:35:24 +0800
commit22a31246622e7139185d080cae9bef275087e245 (patch)
treef61c7dae09567e2d70b8d76909eff90017c4ecc1 /packages/instant/src/components
parent35b505114842b8c8eac838fff8588adf17f54b45 (diff)
downloaddexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar.gz
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar.bz2
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar.lz
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar.xz
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.tar.zst
dexon-sol-tools-22a31246622e7139185d080cae9bef275087e245.zip
Move rollbar setup into function, move setting up into provider
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/zero_ex_instant_container.tsx3
-rw-r--r--packages/instant/src/components/zero_ex_instant_provider.tsx2
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx
index 6d7cef7fd..47c938472 100644
--- a/packages/instant/src/components/zero_ex_instant_container.tsx
+++ b/packages/instant/src/components/zero_ex_instant_container.tsx
@@ -12,15 +12,12 @@ import { SelectedAssetInstantHeading } from '../containers/selected_asset_instan
import { ColorOption } from '../style/theme';
import { zIndex } from '../style/z_index';
import { OrderProcessState, SlideAnimationState } from '../types';
-import { setupRollbar } from '../util/error_reporter';
import { CSSReset } from './css_reset';
import { SlidingPanel } from './sliding_panel';
import { Container } from './ui/container';
import { Flex } from './ui/flex';
-setupRollbar();
-
export interface ZeroExInstantContainerProps {
orderProcessState: OrderProcessState;
}
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx
index 9435d8c7c..00d3e95b2 100644
--- a/packages/instant/src/components/zero_ex_instant_provider.tsx
+++ b/packages/instant/src/components/zero_ex_instant_provider.tsx
@@ -15,11 +15,13 @@ import { AccountState, AffiliateInfo, AssetMetaData, Network, OrderSource } from
import { analytics, disableAnalytics } from '../util/analytics';
import { assetUtils } from '../util/asset';
import { errorFlasher } from '../util/error_flasher';
+import { setupRollbar } from '../util/error_reporter';
import { gasPriceEstimator } from '../util/gas_price_estimator';
import { Heartbeater } from '../util/heartbeater';
import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory';
import { providerStateFactory } from '../util/provider_state_factory';
+setupRollbar();
fonts.include();
export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps &