Remove Delete from panel (#322)

Now that we have context menu, we don't need it there
This commit is contained in:
Christopher Chedeau 2020-01-11 16:11:21 -08:00 committed by GitHub
parent 5bdd0a35f6
commit 9fa69448e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,3 @@
import React from "react";
import { Action } from "./types"; import { Action } from "./types";
import { deleteSelectedElements } from "../scene"; import { deleteSelectedElements } from "../scene";
import { KEYS } from "../keys"; import { KEYS } from "../keys";
@ -12,8 +11,5 @@ export const actionDeleteSelected: Action = {
}, },
contextItemLabel: "Delete", contextItemLabel: "Delete",
contextMenuOrder: 3, contextMenuOrder: 3,
keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE, keyTest: event => event.key === KEYS.BACKSPACE || event.key === KEYS.DELETE
PanelComponent: ({ updateData }) => (
<button onClick={() => updateData(null)}>Delete selected</button>
)
}; };