aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/reducer.ts
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-19 01:33:54 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-19 01:33:54 +0800
commit1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a (patch)
tree49a004445935cd8eb89b8fa7c75dd7a9f9de7b85 /packages/instant/src/redux/reducer.ts
parentcf553f2afe9bae92fda71ae739c982e7bfe97556 (diff)
parent67df5a433d68a2af1a3a03a8bf431629a534dc97 (diff)
downloaddexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.gz
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.bz2
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.lz
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.xz
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.tar.zst
dexon-sol-tools-1ae9eedf9f53d2eb23e51d7cf7060891a6d0521a.zip
Merge remote-tracking branch 'upstream/development' into feature/website/0x-org
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r--packages/instant/src/redux/reducer.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts
index a9a407b7d..8c13c9c72 100644
--- a/packages/instant/src/redux/reducer.ts
+++ b/packages/instant/src/redux/reducer.ts
@@ -14,6 +14,7 @@ import {
Asset,
AssetMetaData,
AsyncProcessState,
+ BaseCurrency,
DisplayStatus,
Network,
OrderProcessState,
@@ -33,6 +34,7 @@ export interface DefaultState {
latestErrorDisplayStatus: DisplayStatus;
quoteRequestState: AsyncProcessState;
standardSlidingPanelSettings: StandardSlidingPanelSettings;
+ baseCurrency: BaseCurrency;
}
// State that is required but needs to be derived from the props
@@ -64,6 +66,7 @@ export const DEFAULT_STATE: DefaultState = {
animationState: 'none',
content: StandardSlidingPanelContent.None,
},
+ baseCurrency: BaseCurrency.USD,
};
export const createReducer = (initialState: State) => {
@@ -243,6 +246,11 @@ export const createReducer = (initialState: State) => {
animationState: 'slidOut',
},
};
+ case ActionTypes.UPDATE_BASE_CURRENCY:
+ return {
+ ...state,
+ baseCurrency: action.data,
+ };
default:
return state;
}