aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 07:43:58 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 07:43:58 +0800
commit9787d1085da225ac3180983065f63d26a6bab3e6 (patch)
tree55892cba39d48ff1f9605dec27ce325e8623ddb1 /packages/instant/src/containers
parent1c0569cfc61d7b166d79d2d73e9bbc6d11a5b4e8 (diff)
downloaddexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar.gz
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar.bz2
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar.lz
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar.xz
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.tar.zst
dexon-sol-tools-9787d1085da225ac3180983065f63d26a6bab3e6.zip
Get rid of old demo
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts24
-rw-r--r--packages/instant/src/containers/selected_asset_simulated_progress_bar.tsx1
2 files changed, 0 insertions, 25 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
index 5cfd1ff6c..247d57938 100644
--- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
+++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
@@ -26,7 +26,6 @@ interface ConnectedDispatch {
onBuyFailure: (buyQuote: BuyQuote, txHash: string, startTimeUnix: number, expectedEndTimeUnix: number) => void;
onRetry: () => void;
onValidationFail: (buyQuote: BuyQuote, errorMessage: AssetBuyerError | ZeroExInstantError) => void;
- secondaryProgressDemo: () => void;
}
export interface SelectedAssetBuyOrderStateButtons {}
const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButtons): ConnectedState => ({
@@ -113,29 +112,6 @@ const mapDispatchToProps = (
onRetry: () => {
dispatch(actions.resetAmount());
},
- secondaryProgressDemo: () => {
- const nowTime = new Date().getTime();
- const futureTime = nowTime + 5000;
- dispatch(
- actions.updateSimulatedOrderProgress({
- startTimeUnix: nowTime,
- expectedEndTimeUnix: futureTime,
- ended: false,
- }),
- );
-
- window.setTimeout(() => {
- console.log('simulate finishing');
-
- dispatch(
- actions.updateSimulatedOrderProgress({
- startTimeUnix: nowTime,
- expectedEndTimeUnix: futureTime,
- ended: true,
- }),
- );
- }, 2000);
- },
});
export const SelectedAssetBuyOrderStateButtons: React.ComponentClass<SelectedAssetBuyOrderStateButtons> = connect(
diff --git a/packages/instant/src/containers/selected_asset_simulated_progress_bar.tsx b/packages/instant/src/containers/selected_asset_simulated_progress_bar.tsx
index adb5daad8..a7acc4cb7 100644
--- a/packages/instant/src/containers/selected_asset_simulated_progress_bar.tsx
+++ b/packages/instant/src/containers/selected_asset_simulated_progress_bar.tsx
@@ -39,6 +39,5 @@ interface ConnectedState {
}
const mapStateToProps = (state: State, _ownProps: {}): ConnectedState => ({
buyOrderState: state.buyOrderState,
- simulatedProgress: state.simulatedProgress,
});
export const SelectedAssetSimulatedProgressBar = connect(mapStateToProps)(SelectedAssetSimulatedProgressComponent);