diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-30 06:10:12 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-30 06:10:12 +0800 |
commit | 0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9 (patch) | |
tree | 9e3188c76ac0e3d981bdc42bea730e334c5f35cf /packages/instant/src/components | |
parent | a41dfa9ae0924a342324e49d9a3eba22fb255667 (diff) | |
download | dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar.gz dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar.bz2 dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar.lz dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar.xz dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.tar.zst dexon-sol-tools-0af07bcf49f62aeeed4aa5ae7bf0e4d5835836e9.zip |
feat: move instant base config to types file
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index e006a5a5f..a57dd7993 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -11,7 +11,7 @@ import { asyncData } from '../redux/async_data'; import { DEFAULT_STATE, DefaultState, State } from '../redux/reducer'; import { store, Store } from '../redux/store'; import { fonts } from '../style/fonts'; -import { AccountState, AffiliateInfo, AssetMetaData, Network, OrderSource } from '../types'; +import { AccountState, AffiliateInfo, AssetMetaData, Network, ZeroExInstantBaseConfig } from '../types'; import { analytics, disableAnalytics } from '../util/analytics'; import { assetUtils } from '../util/asset'; import { errorFlasher } from '../util/error_flasher'; @@ -20,23 +20,7 @@ import { Heartbeater } from '../util/heartbeater'; import { generateAccountHeartbeater, generateBuyQuoteHeartbeater } from '../util/heartbeater_factory'; import { providerStateFactory } from '../util/provider_state_factory'; -export type ZeroExInstantProviderProps = ZeroExInstantProviderRequiredProps & - Partial<ZeroExInstantProviderOptionalProps>; - -export interface ZeroExInstantProviderRequiredProps { - orderSource: OrderSource; -} - -export interface ZeroExInstantProviderOptionalProps { - provider: Provider; - availableAssetDatas: string[]; - defaultAssetBuyAmount: number; - defaultSelectedAssetData: string; - additionalAssetMetaDataMap: ObjectMap<AssetMetaData>; - networkId: Network; - affiliateInfo: AffiliateInfo; - shouldDisableAnalyticsTracking: boolean; -} +export type ZeroExInstantProviderProps = ZeroExInstantBaseConfig; export class ZeroExInstantProvider extends React.Component<ZeroExInstantProviderProps> { private readonly _store: Store; |