mirror of
https://github.com/BoostIo/Boostnote
synced 2026-05-24 00:12:23 +00:00
update Login/Register Container style & fix OnlyGuest Mixin
This commit is contained in:
@@ -63,7 +63,7 @@ module.exports = React.createClass({
|
||||
<input className='stripInput' valueLink={this.linkState('password')} onChange={this.handleChange} type='password' placeholder='Password'/>
|
||||
</div>
|
||||
<div className='form-group'>
|
||||
<button className='btn-primary' type='submit'><i className='fa fa-sign-in'></i> Log In</button>
|
||||
<button className='btn-primary' type='submit'>Log In</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -73,11 +73,11 @@ module.exports = React.createClass({
|
||||
<input className='stripInput' valueLink={this.linkState('profileName')} type='text' placeholder='Profile name'/>
|
||||
</div>
|
||||
<div className='form-group'>
|
||||
<button className='btn-primary' type='submit'><i className='fa fa-sign-in'></i> Sign Up</button>
|
||||
<button className='btn-primary' type='submit'>Sign Up</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p>Sign Upをクリックすることで、当サイトの利用規約及びCookieの使用を含むデータに関するポリシーに同意するものとします。</p>
|
||||
<p className='alert'>会員登録することで、当サイトの利用規約及びCookieの使用を含むデータに関するポリシーに同意するものとします。</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,9 @@ var OnlyGuest = {
|
||||
componentDidMount: function () {
|
||||
if (AuthStore.check()) {
|
||||
var user = AuthStore.getUser()
|
||||
console.log(user)
|
||||
if (user == null) {
|
||||
return
|
||||
}
|
||||
var planet = user.Planets.length > 0 ? user.Planets[0] : null
|
||||
if (planet == null) {
|
||||
this.transitionTo('user', {userName: user.name})
|
||||
|
||||
Reference in New Issue
Block a user