aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/reducer.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 08:38:59 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 08:38:59 +0800
commit449fd9f0242b031c7427ae9a95430008c3171d1c (patch)
tree3c3c74b70bffa766be0bd6ef29c5bf095fdf4ce0 /packages/website/ts/redux/reducer.ts
parent22c4ee6ef709610155191c4b0629ba0c41ce908f (diff)
downloaddexon-sol-tools-449fd9f0242b031c7427ae9a95430008c3171d1c.tar.gz
dexon-sol-tools-449fd9f0242b031c7427ae9a95430008c3171d1c.tar.zst
dexon-sol-tools-449fd9f0242b031c7427ae9a95430008c3171d1c.zip
Remove unused enums
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r--packages/website/ts/redux/reducer.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index 9bd8899ad..361e5f8c6 100644
--- a/packages/website/ts/redux/reducer.ts
+++ b/packages/website/ts/redux/reducer.ts
@@ -5,8 +5,6 @@ import {
Action,
ActionTypes,
BlockchainErrs,
- Direction,
- GenerateOrderSteps,
Order,
ProviderType,
ScreenWidths,
@@ -28,7 +26,6 @@ export interface State {
// Portal
blockchainErr: BlockchainErrs;
blockchainIsLoaded: boolean;
- generateOrderStep: GenerateOrderSteps;
networkId: number;
orderExpiryTimestamp: BigNumber;
orderFillAmount: BigNumber;
@@ -60,7 +57,6 @@ const INITIAL_STATE: State = {
// Portal
blockchainErr: BlockchainErrs.NoError,
blockchainIsLoaded: false,
- generateOrderStep: GenerateOrderSteps.ChooseAssets,
networkId: undefined,
orderExpiryTimestamp: utils.initialOrderExpiryUnixTimestampSec(),
orderFillAmount: undefined,
@@ -259,19 +255,6 @@ export function reducer(state: State = INITIAL_STATE, action: Action) {
});
}
- case ActionTypes.UPDATE_GENERATE_ORDER_STEP: {
- const direction = action.data;
- let nextGenerateOrderStep = state.generateOrderStep;
- if (direction === Direction.forward) {
- nextGenerateOrderStep += 1;
- } else if (state.generateOrderStep !== 0) {
- nextGenerateOrderStep -= 1;
- }
- return _.assign({}, state, {
- generateOrderStep: nextGenerateOrderStep,
- });
- }
-
case ActionTypes.UPDATE_CHOSEN_ASSET_TOKEN: {
const newSideToAssetToken = _.assign({}, state.sideToAssetToken, {
[action.data.side]: action.data.token,