Suggestions and fix bad merge

This commit is contained in:
Brandon Millman
2018-05-08 11:12:46 -07:00
parent 607d738342
commit 17f3d5f6ba
2 changed files with 6 additions and 21 deletions

View File

@@ -9,11 +9,7 @@ import { BlockchainErrDialog } from 'ts/components/dialogs/blockchain_err_dialog
import { LedgerConfigDialog } from 'ts/components/dialogs/ledger_config_dialog';
import { PortalDisclaimerDialog } from 'ts/components/dialogs/portal_disclaimer_dialog';
import { RelayerIndex } from 'ts/components/relayer_index/relayer_index';
<<<<<<< HEAD
import { TopBar, TopBarDisplayType } from 'ts/components/top_bar/top_bar';
=======
import { TopBar } from 'ts/components/top_bar/top_bar';
>>>>>>> development
import { FlashMessage } from 'ts/components/ui/flash_message';
import { Wallet } from 'ts/components/wallet/wallet';
import { localStorage } from 'ts/local_storage/local_storage';
@@ -55,11 +51,7 @@ interface PortalState {
}
const THROTTLE_TIMEOUT = 100;
<<<<<<< HEAD
const TOP_BAR_HEIGHT = TopBar.heightForDisplayType(TopBarDisplayType.Expanded);
=======
const TOP_BAR_HEIGHT = 60;
>>>>>>> development
const styles: Styles = {
root: {
@@ -71,7 +63,6 @@ const styles: Styles = {
height: `calc(100vh - ${TOP_BAR_HEIGHT}px)`,
},
scrollContainer: {
overflowZ: 'hidden',
height: `calc(100vh - ${TOP_BAR_HEIGHT}px)`,
WebkitOverflowScrolling: 'touch',
overflow: 'auto',

View File

@@ -11,7 +11,7 @@ import { ProviderType } from 'ts/types';
import { constants } from 'ts/utils/constants';
import { utils } from 'ts/utils/utils';
const IDENTICON_DIAMETER = 24;
const ROOT_HEIGHT = 24;
export interface ProviderDisplayProps {
dispatcher: Dispatcher;
@@ -27,12 +27,9 @@ interface ProviderDisplayState {}
const styles: Styles = {
root: {
height: 24,
height: ROOT_HEIGHT,
backgroundColor: colors.white,
borderBottomRightRadius: 24,
borderBottomLeftRadius: 24,
borderTopRightRadius: 24,
borderTopLeftRadius: 24,
borderRadius: ROOT_HEIGHT,
boxShadow: `0px 4px 6px ${colors.walletBoxShadow}`,
},
};
@@ -52,21 +49,18 @@ export class ProviderDisplay extends React.Component<ProviderDisplayProps, Provi
: 'Connect a wallet';
const providerTitle =
this.props.providerType === ProviderType.Injected ? injectedProviderName : 'Ledger Nano S';
const isProviderMetamask = providerTitle === 'Metamask';
const isProviderMetamask = providerTitle === constants.PROVIDER_NAME_METAMASK;
const hoverActiveNode = (
<div className="flex right lg-pr0 md-pr2 sm-pr2 p1" style={styles.root}>
<div>
<Identicon address={this.props.userAddress} diameter={IDENTICON_DIAMETER} />
<Identicon address={this.props.userAddress} diameter={ROOT_HEIGHT} />
</div>
<div style={{ marginLeft: 12, paddingTop: 3 }}>
<div style={{ fontSize: 16, color: colors.darkGrey }}>{displayAddress}</div>
</div>
{isProviderMetamask && (
<div style={{ marginLeft: 16 }}>
<img
src="/images/metamask_icon.png"
style={{ width: IDENTICON_DIAMETER, height: IDENTICON_DIAMETER }}
/>
<img src="/images/metamask_icon.png" style={{ width: ROOT_HEIGHT, height: ROOT_HEIGHT }} />
</div>
)}
</div>