Skip to content

Commit

Permalink
chore: disable editable wallet labels until related imported wallet i…
Browse files Browse the repository at this point in the history
…ssue is fixed
  • Loading branch information
deanpress committed Jan 1, 2020
1 parent bc25f4e commit 4c3e845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/account/components/Management/Wallet/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class Wallet extends React.PureComponent {
<div className={styles.wrapper}>
<div
className={styles.title}
contentEditable="true"
contentEditable="false"
onBlur={this.handleChangeLabel}
suppressContentEditableWarning="true"
>
Expand Down Expand Up @@ -131,6 +131,7 @@ export default class Wallet extends React.PureComponent {

handleChangeLabel = (e) => {
const { wallet, account, updateWallet } = this.props;
console.log(wallet);
const newWallet = {
...wallet,
walletLabel: e.target.innerHTML
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/account/components/Management/Wallet/Wallet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@
flex-direction: row;
justify-content: space-between;

/*
.title:focus {
color: black !important;
font-weight: 500;
background-color: $gray-1;
border: 1px solid $brand !important;
border-radius: 4px;
}
*/

.wrapper {
width: 100px;

/*
&:hover .title {
color: black !important;
font-weight: 500;
background-color: $gray-1;
border-radius: 4px;
}
*/
}

@media only screen and (max-width: $responsive-width) {
Expand Down

0 comments on commit 4c3e845

Please sign in to comment.