mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add static defaultProps
This commit is contained in:
parent
d90b3feab8
commit
9d793015d3
@ -25,6 +25,12 @@ export default class EditContact extends PureComponent {
|
|||||||
setAccountLabel: PropTypes.func,
|
setAccountLabel: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static defaultProps = {
|
||||||
|
name: '',
|
||||||
|
address: '',
|
||||||
|
memo: '',
|
||||||
|
}
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
newName: this.props.name,
|
newName: this.props.name,
|
||||||
newAddress: this.props.address,
|
newAddress: this.props.address,
|
||||||
|
Loading…
Reference in New Issue
Block a user