feat: support contextMenuLabel to be of function type to support dynmaic labels (#4654)
This commit is contained in:
@ -4974,6 +4974,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
actionManager: this.actionManager,
|
||||
appState: this.state,
|
||||
container: this.excalidrawContainerRef.current!,
|
||||
elements,
|
||||
});
|
||||
} else {
|
||||
ContextMenu.push({
|
||||
@ -5014,6 +5015,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
actionManager: this.actionManager,
|
||||
appState: this.state,
|
||||
container: this.excalidrawContainerRef.current!,
|
||||
elements,
|
||||
});
|
||||
}
|
||||
} else if (type === "element") {
|
||||
@ -5025,6 +5027,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
actionManager: this.actionManager,
|
||||
appState: this.state,
|
||||
container: this.excalidrawContainerRef.current!,
|
||||
elements,
|
||||
});
|
||||
} else {
|
||||
ContextMenu.push({
|
||||
@ -5069,6 +5072,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
actionManager: this.actionManager,
|
||||
appState: this.state,
|
||||
container: this.excalidrawContainerRef.current!,
|
||||
elements,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user