1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-20 13:11:44 +00:00

on Refactor... #2

This commit is contained in:
Rokt33r
2015-08-18 03:46:09 +09:00
parent 23b8b49c00
commit d8cb93fb10
16 changed files with 389 additions and 244 deletions

View File

@@ -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'})