From 9e76d2ca63090e28379688505e5e179ec642d3b1 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 10 May 2018 15:11:49 -0700 Subject: Add menu --- packages/website/ts/components/portal/portal.tsx | 59 ++++++++++++++++-------- packages/website/ts/components/wallet/wallet.tsx | 2 +- 2 files changed, 41 insertions(+), 20 deletions(-) (limited to 'packages/website/ts/components') diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index d227678d6..e6a92d9a8 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -12,6 +12,7 @@ import { PortalDisclaimerDialog } from 'ts/components/dialogs/portal_disclaimer_ import { EthWrappers } from 'ts/components/eth_wrappers'; import { FillOrder } from 'ts/components/fill_order'; import { AssetPicker } from 'ts/components/generate_order/asset_picker'; +import { LegacyPortalMenu } from 'ts/components/legacy_portal/legacy_portal_menu'; import { RelayerIndex } from 'ts/components/relayer_index/relayer_index'; import { TokenBalances } from 'ts/components/token_balances'; import { TopBar, TopBarDisplayType } from 'ts/components/top_bar/top_bar'; @@ -164,8 +165,6 @@ export class Portal extends React.Component { const updateShouldBlockchainErrDialogBeOpen = this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen.bind( this.props.dispatcher, ); - const allTokens = _.values(this.props.tokenByAddress); - const trackedTokens = _.filter(allTokens, t => t.isTracked); const isAssetPickerDialogOpen = this.state.tokenManagementState !== TokenManagementState.None; const tokenVisibility = this.state.tokenManagementState === TokenManagementState.Add @@ -194,23 +193,19 @@ export class Portal extends React.Component {
Your Account
- +
+ + + + +
@@ -272,6 +267,32 @@ export class Portal extends React.Component {
); } + private _renderMenu() { + return ; + } + private _renderWallet() { + const allTokens = _.values(this.props.tokenByAddress); + const trackedTokens = _.filter(allTokens, t => t.isTracked); + return ( + + ); + } private _renderEthWrapper() { return (