Fix context menu with defaults
This commit is contained in:
parent
3a99af257d
commit
7d6afb6c6b
|
|
@ -7,7 +7,7 @@ import {
|
||||||
TLShape,
|
TLShape,
|
||||||
} from "tldraw"
|
} from "tldraw"
|
||||||
import { TldrawUiMenuGroup } from "tldraw"
|
import { TldrawUiMenuGroup } from "tldraw"
|
||||||
import { DefaultContextMenu } from "tldraw"
|
import { DefaultContextMenu, DefaultContextMenuContent } from "tldraw"
|
||||||
import { TLUiContextMenuProps, useEditor } from "tldraw"
|
import { TLUiContextMenuProps, useEditor } from "tldraw"
|
||||||
import {
|
import {
|
||||||
cameraHistory,
|
cameraHistory,
|
||||||
|
|
@ -67,6 +67,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DefaultContextMenu {...props}>
|
<DefaultContextMenu {...props}>
|
||||||
|
<DefaultContextMenuContent />
|
||||||
{/* Camera Controls Group */}
|
{/* Camera Controls Group */}
|
||||||
<TldrawUiMenuGroup id="camera-controls">
|
<TldrawUiMenuGroup id="camera-controls">
|
||||||
<TldrawUiMenuItem
|
<TldrawUiMenuItem
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue