Revert Double Click (#4590)

This commit is contained in:
Nicolas Gotchac 2017-02-17 18:11:10 +01:00 committed by Gav Wood
parent 39237e9d15
commit 04f3ee90d8

View File

@ -345,21 +345,16 @@ class ParityBar extends Component {
renderAccount = (account) => {
const makeDefaultAccount = () => {
this.toggleAccountsDisplay();
return this.accountStore
.makeDefaultAccount(account.address)
.then(() => this.accountStore.loadAccounts());
};
const onDoubleClick = () => {
this.toggleAccountsDisplay();
makeDefaultAccount();
};
return (
<div
className={ styles.account }
onClick={ makeDefaultAccount }
onDoubleClick={ onDoubleClick }
>
<AccountCard
account={ account }