Edit account modal shows and allows editing of name from props, not just placeholder.

This commit is contained in:
Dan 2017-10-04 21:01:12 -02:30 committed by Chi Kei Chan
parent c9c940bfc1
commit 49aa6e73ea
1 changed files with 3 additions and 2 deletions

View File

@ -24,10 +24,11 @@ function mapDispatchToProps (dispatch) {
}
inherits(EditAccountNameModal, Component)
function EditAccountNameModal () {
function EditAccountNameModal (props) {
Component.call(this)
this.state = {
inputText: '',
inputText: props.identity.name,
}
}