TechNote/app/actions/contextMenu.jsx
Joey Payne c1340ef758 Refactor context menu actions and constants
This is in order to accomodate more stateful objects by separating the
context menu specific actions and constants into their own files.
2016-03-05 17:24:23 -07:00

13 lines
326 B
JavaScript

import * as types from '../constants/contextMenu'
export function updateContextMenu(items) {
return { type: types.UPDATE_CONTEXT_MENU, items }
}
export function openContextMenu(x, y){
return {type: types.OPEN_CONTEXT_MENU, x, y}
}
export function closeContextMenu(){
return {type: types.CLOSE_CONTEXT_MENU}
}