aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-04-24 02:57:55 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-04-24 05:27:11 +0800
commitcc471dd127b3b2b30ebe32452f9dd03778845e7c (patch)
tree087d42d8fa88c844c671fd795ab632280d7e3115 /packages/website/ts/containers
parentd08bfbf7054d0d98680daab3d1fdc0ac878dcc16 (diff)
downloaddexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar.gz
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar.bz2
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar.lz
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar.xz
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.tar.zst
dexon-sol-tools-cc471dd127b3b2b30ebe32452f9dd03778845e7c.zip
Rename Portal and PortalMenu components to LegacyPortal and LegacyPortalMenu
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/legacy_portal.ts (renamed from packages/website/ts/containers/portal.ts)14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/website/ts/containers/portal.ts b/packages/website/ts/containers/legacy_portal.ts
index 725564ead..3b1172a44 100644
--- a/packages/website/ts/containers/portal.ts
+++ b/packages/website/ts/containers/legacy_portal.ts
@@ -3,7 +3,10 @@ import * as _ from 'lodash';
import * as React from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
-import { Portal as PortalComponent, PortalAllProps as PortalComponentAllProps } from 'ts/components/portal';
+import {
+ LegacyPortal as LegacyPortalComponent,
+ LegacyPortalProps as LegacyPortalComponentProps,
+} from 'ts/components/legacy_portal/legacy_portal';
import { Dispatcher } from 'ts/redux/dispatcher';
import { State } from 'ts/redux/reducer';
import { BlockchainErrs, HashData, Order, ProviderType, ScreenWidths, Side, TokenByAddress } from 'ts/types';
@@ -34,7 +37,7 @@ interface ConnectedDispatch {
dispatcher: Dispatcher;
}
-const mapStateToProps = (state: State, ownProps: PortalComponentAllProps): ConnectedState => {
+const mapStateToProps = (state: State, ownProps: LegacyPortalComponentProps): ConnectedState => {
const receiveAssetToken = state.sideToAssetToken[Side.Receive];
const depositAssetToken = state.sideToAssetToken[Side.Deposit];
const receiveAddress = !_.isUndefined(receiveAssetToken.address)
@@ -83,6 +86,7 @@ const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
dispatcher: new Dispatcher(dispatch),
});
-export const Portal: React.ComponentClass<PortalComponentAllProps> = connect(mapStateToProps, mapDispatchToProps)(
- PortalComponent,
-);
+export const LegacyPortal: React.ComponentClass<LegacyPortalComponentProps> = connect(
+ mapStateToProps,
+ mapDispatchToProps,
+)(LegacyPortalComponent);