From 9fa69448e42f47ae3c2a47c946199c7c97f54c85 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 11 Jan 2020 16:11:21 -0800 Subject: [PATCH] Remove Delete from panel (#322) Now that we have context menu, we don't need it there --- src/actions/actionDeleteSelected.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/actions/actionDeleteSelected.tsx b/src/actions/actionDeleteSelected.tsx index 1c2aed03..bb1dab71 100644 --- a/src/actions/actionDeleteSelected.tsx +++ b/src/actions/actionDeleteSelected.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Action } from "./types"; import { deleteSelectedElements } from "../scene"; import { KEYS } from "../keys"; @@ -12,8 +11,5 @@ export const actionDeleteSelected: Action = { }, contextItemLabel: "Delete", contextMenuOrder: 3, - keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE, - PanelComponent: ({ updateData }) => ( - - ) + keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE };