Add global state and right click menu using redux
This commit is contained in:
parent
9821373504
commit
54d64cc124
10 changed files with 190 additions and 81 deletions
13
app/actions/index.jsx
Normal file
13
app/actions/index.jsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import * as types from '../constants'
|
||||
|
||||
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}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue