refactored sections
This commit is contained in:
29
front-ui/app/actions/sectionActions.js
Normal file
29
front-ui/app/actions/sectionActions.js
Normal file
@@ -0,0 +1,29 @@
|
||||
var AppDispatcher = require('../dispatcher/appDispatcher');
|
||||
var SectionConstants = require('../constants/sectionConstants');
|
||||
|
||||
// Define action methods
|
||||
var SectionActions = {
|
||||
|
||||
loadSections: function() {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: SectionConstants.LOAD_SECTIONS
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
setSectionHover: function(section) {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: SectionConstants.SET_SECTION_HOVER,
|
||||
section: section
|
||||
})
|
||||
},
|
||||
|
||||
unsetSectionHover: function() {
|
||||
AppDispatcher.handleAction({
|
||||
actionType: SectionConstants.UNSET_SECTION_HOVER
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
module.exports = SectionActions;
|
||||
Reference in New Issue
Block a user