Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix Wallet Settings Modal #3856

Merged
merged 2 commits into from
Dec 19, 2016
Merged

Fix Wallet Settings Modal #3856

merged 2 commits into from
Dec 19, 2016

Conversation

ngotchac
Copy link
Contributor

Fixes the wrong require field in Wallet Settings modal.
Also, stop defaulting Uint TypedInput with the ETH toggle. Only for contracts now.

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Dec 15, 2016
@@ -105,7 +104,7 @@ export default class WalletDetails extends Component {
value={ wallet.owners.slice() }
onChange={ this.onOwnersChange }
accounts={ accounts }
param={ parseAbiType('address[]') }
param='address[]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would have been good to just order here, however not a crisis.

};

static defaultProps = {
min: null,
max: null,
isEth: false
isEth: null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Null for bool? Going to run into issues again, need to stop doing tri-states.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively just fix the PropTypes to be explicit on what it required, null or bool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes missed that one. The idea is just that by default it's using the given param, but if isEth is passed, then it will show the ETH toggle. If isEth is true => default to ETH value, if not, default to integer value. Will change the PropTypes though

@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 85.571% when pulling 211cb37 on ng-wallet-fixes into 6d41168 on master.

@jacogr jacogr added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 18, 2016
@jacogr jacogr merged commit 670be41 into master Dec 19, 2016
@jacogr jacogr deleted the ng-wallet-fixes branch December 19, 2016 12:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants