diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 06:39:58 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 06:39:58 +0800 |
commit | abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3 (patch) | |
tree | b40d6f01f0df15f9be5d74fc54999abdab3b7db3 /packages/instant/src/redux/reducer.ts | |
parent | 05f059492bbc86d61946562ac8c116259ded3487 (diff) | |
download | dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar.gz dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar.bz2 dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar.lz dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar.xz dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.tar.zst dexon-sol-tools-abaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3.zip |
Simulated Progress component working
Diffstat (limited to 'packages/instant/src/redux/reducer.ts')
-rw-r--r-- | packages/instant/src/redux/reducer.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/instant/src/redux/reducer.ts b/packages/instant/src/redux/reducer.ts index be336f7c2..428cf0984 100644 --- a/packages/instant/src/redux/reducer.ts +++ b/packages/instant/src/redux/reducer.ts @@ -14,6 +14,7 @@ import { OrderProcessState, OrderProgress, OrderState, + SimulatedProgress, } from '../types'; import { assetUtils } from '../util/asset'; import { BigNumberInput } from '../util/big_number_input'; @@ -32,7 +33,9 @@ export interface State { quoteRequestState: AsyncProcessState; latestErrorMessage?: string; latestErrorDisplayStatus: DisplayStatus; + // TODO: this is old, cleanup orderProgress?: OrderProgress; + simulatedProgress?: SimulatedProgress; } export const INITIAL_STATE: State = { @@ -121,11 +124,17 @@ export const reducer = (state: State = INITIAL_STATE, action: Action): State => ...state, selectedAsset: newSelectedAsset, }; + // TODO: this is old, delete case ActionTypes.UPDATE_ORDER_PROGRESS_PERCENTAGE: return { ...state, orderProgress: { percentageDone: action.data }, }; + case ActionTypes.UPDATE_SIMULATED_ORDER_PROGRESS: + return { + ...state, + simulatedProgress: action.data, + }; case ActionTypes.RESET_AMOUNT: return { ...state, |