Revert Double Click (#4590)
This commit is contained in:
parent
39237e9d15
commit
04f3ee90d8
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user