mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
19 lines
326 B
JavaScript
19 lines
326 B
JavaScript
'use strict';
|
|
|
|
import alt from '../alt';
|
|
import UserActions from '../actions/user_actions';
|
|
|
|
|
|
class UserStore {
|
|
constructor() {
|
|
this.currentUser = {};
|
|
this.bindActions(UserActions);
|
|
}
|
|
|
|
onUpdateCurrentUser(user) {
|
|
this.currentUser = user;
|
|
}
|
|
}
|
|
|
|
export default alt.createStore(UserStore);
|