mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 18:13:49 +01:00
20 lines
473 B
JavaScript
20 lines
473 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import alt from '../alt';
|
||
|
|
||
|
import PrizeListActions from '../actions/prize_list_actions';
|
||
|
|
||
|
class PrizeListStore {
|
||
|
constructor() {
|
||
|
this.prizeList = [];
|
||
|
this.prizeListCount = -1;
|
||
|
this.bindActions(PrizeListActions);
|
||
|
}
|
||
|
|
||
|
onUpdatePrizeList({ prizeList, prizeListCount }) {
|
||
|
this.prizeList = prizeList;
|
||
|
this.prizeListCount = prizeListCount;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default alt.createStore(PrizeListStore, 'PrizeListStore');
|