default cursor once connected

This commit is contained in:
Barry Gitarts 2019-08-19 15:56:01 -04:00 committed by Barry G
parent 039054f052
commit dc7e787353
1 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,8 @@ const styles = theme => ({
cursor: 'pointer'
},
connected: {
color: '#44D058'
color: '#44D058',
cursor: 'default'
},
connectedText: {
display: 'flex',
@ -179,7 +180,7 @@ class PersistentDrawerLeft extends React.Component {
<Typography className={classes.menuText} variant="h6" noWrap>
Liquid Funding
</Typography>
<Typography className={classNames(classes.connect, {[classes.connected]: !!account})} onClick={enableEthereum}>
<Typography className={classNames(classes.connect, {[classes.connected]: !!account})} onClick={!account ? enableEthereum : console.log}>
{!!account && <div className={classes.connectedText}>
<div className={classes.accountText}>{formatAccount(account)}</div>
<div>Connected</div>