mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
18 lines
345 B
JavaScript
18 lines
345 B
JavaScript
'use strict';
|
|
|
|
import { alt } from '../../../../alt';
|
|
|
|
import PrizeActions from '../actions/prize_actions';
|
|
|
|
class PrizeStore {
|
|
constructor() {
|
|
this.prize = [];
|
|
this.bindActions(PrizeActions);
|
|
}
|
|
|
|
onUpdatePrize({ prize }) {
|
|
this.prize = prize;
|
|
}
|
|
}
|
|
|
|
export default alt.createStore(PrizeStore, 'PrizeStore'); |