diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-05-12 05:17:40 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-18 02:02:55 +0800 |
commit | ef1e9743465d40cb3a2c3a1479155437694951b9 (patch) | |
tree | 2ef26bfa8b220521b4d0232221da25e1bc9b5f96 /packages/website/ts/components/wallet | |
parent | 55d1228abb308e27c913b0f717bac7c4395ec08c (diff) | |
download | dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar.gz dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar.bz2 dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar.lz dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar.xz dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.tar.zst dexon-sol-tools-ef1e9743465d40cb3a2c3a1479155437694951b9.zip |
Back button and title components
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index d9c97e34a..ac79d5a21 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -18,6 +18,7 @@ import NavigationArrowDownward from 'material-ui/svg-icons/navigation/arrow-down import NavigationArrowUpward from 'material-ui/svg-icons/navigation/arrow-upward'; import Close from 'material-ui/svg-icons/navigation/close'; import * as React from 'react'; +import { Link } from 'react-router-dom'; import ReactTooltip = require('react-tooltip'); import firstBy = require('thenby'); @@ -38,6 +39,7 @@ import { TokenByAddress, TokenState, TokenStateByAddress, + WebsitePaths, } from 'ts/types'; import { backendClient } from 'ts/utils/backend_client'; import { constants } from 'ts/utils/constants'; @@ -237,13 +239,15 @@ export class Wallet extends React.Component<WalletProps, WalletState> { const userAddress = this.props.userAddress; const primaryText = utils.getAddressBeginAndEnd(userAddress); return ( - <ListItem - key={HEADER_ITEM_KEY} - primaryText={primaryText} - leftIcon={<Identicon address={userAddress} diameter={ICON_DIMENSION} />} - style={{ ...styles.paddedItem, ...styles.borderedItem }} - innerDivStyle={styles.headerItemInnerDiv} - /> + <Link to={`${WebsitePaths.Portal}/account`} style={{ textDecoration: 'none' }}> + <ListItem + key={HEADER_ITEM_KEY} + primaryText={primaryText} + leftIcon={<Identicon address={userAddress} diameter={ICON_DIMENSION} />} + style={{ ...styles.paddedItem, ...styles.borderedItem }} + innerDivStyle={styles.headerItemInnerDiv} + /> + </Link> ); } private _renderBody(): React.ReactElement<{}> { |