1
0
Эх сурвалжийг харах

chore: remove showContextMenu state

Konstantinos Kaloutas 3 жил өмнө
parent
commit
72ec492e8f

+ 0 - 6
tldraw/packages/core/src/lib/TLApp/TLApp.ts

@@ -719,12 +719,6 @@ export class TLApp<
     )
   }
 
-  @computed get showContextMenu() {
-    return (
-      this.isIn('select.contextMenu')
-    )
-  }
-
   @computed get showRotateHandles() {
     const { selectedShapesArray } = this
     return (

+ 0 - 1
tldraw/packages/react/src/components/AppCanvas.tsx

@@ -33,7 +33,6 @@ export const AppCanvas = observer(function InnerApp<S extends TLReactShape>(
       showRotateHandles={app.showRotateHandles}
       showSelectionDetail={app.showSelectionDetail}
       showContextBar={app.showContextBar}
-      showContextMenu={app.showContextMenu}
       cursor={app.cursors.cursor}
       cursorRotation={app.cursors.rotation}
       selectionRotation={app.selectionRotation}

+ 0 - 1
tldraw/packages/react/src/components/Canvas/Canvas.test.tsx

@@ -22,7 +22,6 @@ describe('Canvas', () => {
           showRotateHandles={app.showRotateHandles}
           showSelectionDetail={app.showSelectionDetail}
           showContextBar={app.showContextBar}
-          showContextMenu={app.showContextMenu}
         />
       )
     }

+ 0 - 2
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -54,7 +54,6 @@ export interface TLCanvasProps<S extends TLReactShape> {
   showResizeHandles: boolean
   showRotateHandles: boolean
   showContextBar: boolean
-  showContextMenu: boolean
   showSelectionDetail: boolean
   showSelectionRotation: boolean
   children: React.ReactNode
@@ -83,7 +82,6 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
   showRotateHandles = true,
   showSelectionDetail = true,
   showContextBar = true,
-  showContextMenu = true,
   showGrid = true,
   gridSize = 8,
   onEditingEnd = NOOP,

+ 0 - 1
tldraw/packages/react/src/components/Renderer/Renderer.test.tsx

@@ -25,7 +25,6 @@ describe('HTMLLayer', () => {
           showRotateHandles={app.showRotateHandles}
           showSelectionDetail={app.showSelectionDetail}
           showContextBar={app.showContextBar}
-          showContextMenu={app.showContextBar}
         />
       )
     }