From ed559be47cb70a8a5de4f4eb766e1bfd67bf0141 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Wed, 27 Jun 2018 15:19:22 -0700 Subject: Change learn how to update your account styling --- packages/website/ts/components/portal/portal.tsx | 44 +++++++++--------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to 'packages/website') diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index 438c7b52f..d36ec99b0 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -1,7 +1,7 @@ import { colors, constants as sharedConstants } from '@0xproject/react-shared'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; -import ActionAccountBalanceWallet from 'material-ui/svg-icons/action/account-balance-wallet'; +import Help from 'material-ui/svg-icons/action/help'; import * as React from 'react'; import * as DocumentTitle from 'react-document-title'; import { Route, RouteComponentProps, Switch } from 'react-router-dom'; @@ -319,14 +319,13 @@ export class Portal extends React.Component { ); } private _renderWallet(): React.ReactNode { - const startOnboarding = this._renderStartOnboarding(); const isMobile = utils.isMobile(this.props.screenWidth); // We need room to scroll down for mobile onboarding const marginBottom = isMobile ? '200px' : '15px'; return (
- {isMobile && {startOnboarding}} + {isMobile && {this._renderStartOnboarding()}} { refetchTokenStateAsync={this._refetchTokenStateAsync.bind(this)} /> - {!isMobile && {startOnboarding}} + {!isMobile && {this._renderStartOnboarding()}} { } private _renderStartOnboarding(): React.ReactNode { return ( - - - - - Learn how to set up your account - - - + + + + Learn how to set up your account + + ); } @@ -535,11 +521,15 @@ export class Portal extends React.Component { ); } private _renderRelayerIndexSection(): React.ReactNode { + return
} body={this._renderRelayerIndex()} />; + } + private _renderRelayerIndex(): React.ReactNode { + const isMobile = utils.isMobile(this.props.screenWidth); return ( -
} - body={} - /> +
+ {isMobile && {this._renderStartOnboarding()}} + +
); } private _renderNotFoundMessage(): React.ReactNode { -- cgit