aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:48:28 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:48:28 +0800
commitb4af27dd4462a001904ac6d69e43aac9fd7bb69a (patch)
tree66f544254e240b93ce020990c25a7335897c7a12 /packages/instant/src/containers
parent9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937 (diff)
downloaddexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar.gz
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar.bz2
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar.lz
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar.xz
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.tar.zst
dexon-sol-tools-b4af27dd4462a001904ac6d69e43aac9fd7bb69a.zip
Moved LatestErrorDisplay to types file and gave generic name
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/latest_error.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/instant/src/containers/latest_error.tsx b/packages/instant/src/containers/latest_error.tsx
index 08ea418e7..413cf16ad 100644
--- a/packages/instant/src/containers/latest_error.tsx
+++ b/packages/instant/src/containers/latest_error.tsx
@@ -3,7 +3,8 @@ import * as React from 'react';
import { connect } from 'react-redux';
import { SlidingError } from '../components/sliding_error';
-import { LatestErrorDisplay, State } from '../redux/reducer';
+import { State } from '../redux/reducer';
+import { DisplayStatus } from '../types';
import { errorUtil } from '../util/error';
export interface LatestErrorComponentProps {
@@ -29,7 +30,7 @@ export interface LatestErrorProps {}
const mapStateToProps = (state: State, _ownProps: LatestErrorProps): ConnectedState => ({
assetData: state.selectedAssetData,
latestError: state.latestError,
- slidingDirection: state.latestErrorDisplay === LatestErrorDisplay.Present ? 'up' : 'down',
+ slidingDirection: state.latestErrorDisplay === DisplayStatus.Present ? 'up' : 'down',
});
export const LatestError = connect(mapStateToProps)(LatestErrorComponent);