mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
17 lines
308 B
JavaScript
17 lines
308 B
JavaScript
import alt from '../alt';
|
|
import UserAction from '../actions/user_actions';
|
|
|
|
|
|
class UserStore{
|
|
constructor() {
|
|
this.currentUser = {}
|
|
this.bindActions(UserAction);
|
|
}
|
|
|
|
onUpdateCurrentUser(user) {
|
|
this.currentUser = user;
|
|
}
|
|
};
|
|
|
|
export default alt.createStore(UserStore);
|