mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-20 13:11:44 +00:00
on Refactor... #2
This commit is contained in:
@@ -34,24 +34,6 @@ module.exports = React.createClass({
|
||||
componentWillUnmount: function () {
|
||||
},
|
||||
onListen: function (res) {
|
||||
console.log(res)
|
||||
if (res.status === 'userProfileUpdated') {
|
||||
this.setState({
|
||||
isUpdatingProfile: false,
|
||||
isUpdatingProfileDone: true,
|
||||
isUpdatingProfileFailed: false
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (res.status === 'userProfileUpdatingFailed') {
|
||||
this.setState({
|
||||
isUpdatingProfile: false,
|
||||
isUpdatingProfileDone: false,
|
||||
isUpdatingProfileFailed: true
|
||||
})
|
||||
return
|
||||
}
|
||||
},
|
||||
activeProfile: function () {
|
||||
this.setState({currentTab: 'profile'})
|
||||
|
||||
Reference in New Issue
Block a user