mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 07:33:21 -05:00
AccountCombobox: Fixup defaultProps the right way for ES6
This commit is contained in:
parent
7817e6f08e
commit
2deaf8ccb5
@ -5,15 +5,17 @@ var Combobox = require('react-widgets').Combobox;
|
||||
var getAccountDisplayList = require('../utils').getAccountDisplayList;
|
||||
|
||||
class AccountCombobox extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
this.onAccountChange = this.handleAccountChange.bind(this);
|
||||
this.defaultProps = {
|
||||
static get defaultProps() {
|
||||
return {
|
||||
includeRoot: true,
|
||||
disabled: false,
|
||||
rootName: "New Top-level Account"
|
||||
}
|
||||
}
|
||||
constructor() {
|
||||
super();
|
||||
this.onAccountChange = this.handleAccountChange.bind(this);
|
||||
}
|
||||
handleAccountChange(account) {
|
||||
if (this.props.onChange != null &&
|
||||
account.hasOwnProperty('AccountId') &&
|
||||
|
Loading…
Reference in New Issue
Block a user