Skip to content

Commit

Permalink
Add static defaultProps
Browse files Browse the repository at this point in the history
  • Loading branch information
tmashuang committed Oct 30, 2019
1 parent d90b3fe commit 9d79301
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export default class EditContact extends PureComponent {
setAccountLabel: PropTypes.func,
}

static defaultProps = {
name: '',
address: '',
memo: '',
}

state = {
newName: this.props.name,
newAddress: this.props.address,
Expand Down

0 comments on commit 9d79301

Please sign in to comment.