feat: make use of useState to show and hide context menu rather than manually rendering and unrendering
This commit is contained in:
parent
a146eb001a
commit
78d43ca0c8
7 changed files with 47 additions and 29 deletions
|
@ -103,3 +103,10 @@ export interface ContextMenuItem {
|
|||
name: string,
|
||||
callback: (...args: any[]) => any;
|
||||
}
|
||||
|
||||
export interface ContextMenuInterface {
|
||||
show: boolean,
|
||||
cursorX: number,
|
||||
cursorY: number,
|
||||
items: ContextMenuItem[]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue