Add action to open reusabel context menu

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-11 20:46:41 +05:30
parent a2eb9734f1
commit a279995982
3 changed files with 19 additions and 0 deletions

View file

@ -110,3 +110,12 @@ export function openSearch(term) {
term,
});
}
export function openReusableContextMenu(placement, cords, render) {
appDispatcher.dispatch({
type: cons.actions.navigation.OPEN_REUSABLE_CONTEXT_MENU,
placement,
cords,
render,
});
}