aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 06:43:38 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 06:43:38 +0800
commitdc9013652914333bfdc3c067d9b83a71f28c7382 (patch)
tree0caf8804363e80add1a2267c682d7a673d0b5eb2 /packages/instant/src/containers
parentabaa39a5e24daa8a1a7ff5617a14d2f3088cb0e3 (diff)
downloaddexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar.gz
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar.bz2
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar.lz
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar.xz
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.tar.zst
dexon-sol-tools-dc9013652914333bfdc3c067d9b83a71f28c7382.zip
Remove old files
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_progress_bar.tsx37
1 files changed, 0 insertions, 37 deletions
diff --git a/packages/instant/src/containers/selected_asset_progress_bar.tsx b/packages/instant/src/containers/selected_asset_progress_bar.tsx
deleted file mode 100644
index 4564c790a..000000000
--- a/packages/instant/src/containers/selected_asset_progress_bar.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import * as React from 'react';
-
-import { connect } from 'react-redux';
-
-import { ProgressBar } from '../components/progress_bar';
-import { State } from '../redux/reducer';
-import { OrderProcessState, OrderState } from '../types';
-
-interface SelectedAssetProgressComponentProps {
- buyOrderState: OrderState;
- percentageDone?: number;
-}
-export const SelectedAssetProgressComponent: React.StatelessComponent<SelectedAssetProgressComponentProps> = props => {
- const { buyOrderState, percentageDone } = props;
-
- // TODO: uncomment after done testing
- // const isOrderStateOk =
- // buyOrderState.processState === OrderProcessState.PROCESSING ||
- // buyOrderState.processState === OrderProcessState.SUCCESS;
- const isOrderStateOk = true;
-
- if (isOrderStateOk && percentageDone) {
- return <ProgressBar percentageDone={percentageDone} estTimeMs={1000} elapsedTimeMs={2000} />;
- }
-
- return null;
-};
-
-interface ConnectedState {
- buyOrderState: OrderState;
- percentageDone?: number;
-}
-const mapStateToProps = (state: State, _ownProps: {}): ConnectedState => ({
- buyOrderState: state.buyOrderState,
- percentageDone: state.orderProgress && state.orderProgress.percentageDone,
-});
-export const SelectedAssetProgressBar = connect(mapStateToProps)(SelectedAssetProgressComponent);