1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/user_store.js

17 lines
308 B
JavaScript
Raw Normal View History

2015-05-20 16:19:40 +02:00
import alt from '../alt';
import UserAction from '../actions/user_actions';
2015-05-20 16:44:45 +02:00
2015-05-20 16:19:40 +02:00
class UserStore{
constructor() {
2015-06-01 18:59:47 +02:00
this.currentUser = {};
2015-05-20 16:19:40 +02:00
this.bindActions(UserAction);
}
onUpdateCurrentUser(user) {
this.currentUser = user;
}
2015-06-01 18:59:47 +02:00
}
2015-05-20 16:19:40 +02:00
export default alt.createStore(UserStore);