aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/reducer.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-03 03:43:53 +0800
committerGitHub <noreply@github.com>2018-11-03 03:43:53 +0800
commitec83a1d9e735573fe51df7a5854424c0ad4101fb (patch)
treef28def28bee9925daf8dd859b750c94c0cd83f98 /packages/instant/src/redux/reducer.ts
parente7e9c2a2ebf32ed96e859c9c50a5c9614e372bc7 (diff)
parentb895b855cbb555736be838e2630890ab6a69d884 (diff)
downloaddexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar.gz
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar.bz2
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar.lz
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar.xz
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.tar.zst
dexon-sol-tools-ec83a1d9e735573fe51df7a5854424c0ad4101fb.zip
Merge pull request #1207 from 0xProject/feature/instant/affiliate-fee
[instant][asset-buyer] Implement affiliateInfo prop
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r--packages/instant/src/redux/reducer.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index cf24f8488..d1537b49b 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -6,6 +6,7 @@ import * as _ from 'lodash';
import { assetMetaDataMap } from '../data/asset_meta_data_map';
import {
+ AffiliateInfo,
Asset,
AssetMetaData,
AsyncProcessState,
@@ -31,6 +32,7 @@ export interface State {
quoteRequestState: AsyncProcessState;
latestErrorMessage?: string;
latestErrorDisplayStatus: DisplayStatus;
+ affiliateInfo?: AffiliateInfo;
}
export const INITIAL_STATE: State = {
@@ -43,6 +45,7 @@ export const INITIAL_STATE: State = {
latestErrorMessage: undefined,
latestErrorDisplayStatus: DisplayStatus.Hidden,
quoteRequestState: AsyncProcessState.NONE,
+ affiliateInfo: undefined,
};
export const reducer = (state: State = INITIAL_STATE, action: Action): State => {