From e0482f5400261bcaced8ea2263b1032939d25b92 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Mon, 14 May 2018 22:11:12 -0700 Subject: Wait for blockchain to display the account management routes --- packages/website/ts/components/portal/portal.tsx | 48 +++++++++++++++++------- 1 file changed, 34 insertions(+), 14 deletions(-) (limited to 'packages/website/ts/components/portal') diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index f3b0cc721..bdaf9b18e 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -1,6 +1,7 @@ import { colors, Styles } from '@0xproject/react-shared'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; +import CircularProgress from 'material-ui/CircularProgress'; import * as React from 'react'; import * as DocumentTitle from 'react-document-title'; import { Link, Route, RouteComponentProps, Switch } from 'react-router-dom'; @@ -22,6 +23,7 @@ import { Wallet } from 'ts/components/wallet/wallet'; import { GenerateOrderForm } from 'ts/containers/generate_order_form'; import { localStorage } from 'ts/local_storage/local_storage'; import { trackedTokenStorage } from 'ts/local_storage/tracked_token_storage'; +import { FullscreenMessage } from 'ts/pages/fullscreen_message'; import { Dispatcher } from 'ts/redux/dispatcher'; import { BlockchainErrs, @@ -218,20 +220,8 @@ export class Portal extends React.Component {
- - - {
); } + private _renderAccountManagement(): React.ReactNode { + return this.props.blockchainIsLoaded ? ( + + + + + + + + ) : ( +
+
+
+ +
+
+
+ ); + } private _renderEthWrapper(): React.ReactNode { return (
@@ -383,6 +395,14 @@ export class Portal extends React.Component {
); } + private _renderNotFoundMessage(): React.ReactNode { + return ( + + ); + } private _onTokenChosen(tokenAddress: string): void { if (_.isEmpty(tokenAddress)) { this.setState({ -- cgit