mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-28 05:54:34 +02:00
25 lines
517 B
JavaScript
25 lines
517 B
JavaScript
"use strict";
|
|
|
|
var AppConstants = require('../constants/AppConstants');
|
|
var AppDispatcher = require('../dispatcher/AppDispatcher');
|
|
|
|
var ActionTypes = AppConstants.ActionTypes;
|
|
|
|
var LevelActions = {
|
|
|
|
setLevelSolved: function(levelID) {
|
|
AppDispatcher.handleViewAction({
|
|
type: ActionTypes.SET_LEVEL_SOLVED,
|
|
levelID: levelID
|
|
});
|
|
},
|
|
|
|
resetLevelsSolved: function() {
|
|
AppDispatcher.handleViewAction({
|
|
type: ActionTypes.RESET_LEVELS_SOLVED
|
|
});
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = LevelActions;
|