1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

#14 改善適用

- アプリが立ち上がったら最初はmy planetが表示されるようにしたい
- Noteがスクロールできない
- Note行間がなくて読みづらい
This commit is contained in:
Rokt33r
2015-08-23 00:52:03 +09:00
parent da066fe694
commit 04060ce252
7 changed files with 36 additions and 31 deletions

View File

@@ -16,6 +16,10 @@ module.exports = React.createClass({
componentDidMount: function () {
if (this.isActive('homeEmpty')) {
var user = JSON.parse(localStorage.getItem('currentUser'))
if (user.Planets != null && user.Planets.length > 0) {
this.transitionTo('planet', {userName: user.name, planetName: user.Planets[0].name})
return
}
this.transitionTo('userHome', {userName: user.name})
}
},