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

refactor Actions & add logout action

This commit is contained in:
Rokt33r
2015-07-14 01:20:17 +09:00
parent b0d9895e5e
commit 8b10eb130a
19 changed files with 69 additions and 94 deletions

View File

@@ -3,7 +3,7 @@ var ReactRouter = require('react-router')
var Link = ReactRouter.Link
var AuthStore = require('../Stores/AuthStore')
var register = require('../Actions/register')
var AuthActions = require('../Actions/AuthActions')
var OnlyGuest = require('../Mixins/OnlyGuest')
@@ -24,7 +24,7 @@ module.exports = React.createClass({
this.unsubscribe()
},
handleSubmit: function (e) {
register({
AuthActions.register({
email: this.state.email,
password: this.state.password,
name: this.state.name,