mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-10-30 18:34:22 +01:00 
			
		
		
		
	Remove zindex options from panel (#315)
Now that they are in the context menu, we don't need to have them in the panel anymore. Fixes #242
This commit is contained in:
		 Christopher Chedeau
					Christopher Chedeau
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							8f28c59deb
						
					
				
				
					commit
					6399b1f318
				
			| @@ -1,4 +1,3 @@ | ||||
| import React from "react"; | ||||
| import { Action } from "./types"; | ||||
| import { | ||||
|   moveOneLeft, | ||||
| @@ -20,12 +19,7 @@ export const actionSendBackward: Action = { | ||||
|   contextItemLabel: "Send Backward", | ||||
|   keyPriority: 40, | ||||
|   keyTest: event => | ||||
|     event[META_KEY] && event.shiftKey && event.altKey && event.code === "KeyB", | ||||
|   PanelComponent: ({ updateData }) => ( | ||||
|     <button type="button" onClick={e => updateData(null)}> | ||||
|       Send backward | ||||
|     </button> | ||||
|   ) | ||||
|     event[META_KEY] && event.shiftKey && event.altKey && event.code === "KeyB" | ||||
| }; | ||||
|  | ||||
| export const actionBringForward: Action = { | ||||
| @@ -39,12 +33,7 @@ export const actionBringForward: Action = { | ||||
|   contextItemLabel: "Bring Forward", | ||||
|   keyPriority: 40, | ||||
|   keyTest: event => | ||||
|     event[META_KEY] && event.shiftKey && event.altKey && event.code === "KeyF", | ||||
|   PanelComponent: ({ updateData }) => ( | ||||
|     <button type="button" onClick={e => updateData(null)}> | ||||
|       Bring Forward | ||||
|     </button> | ||||
|   ) | ||||
|     event[META_KEY] && event.shiftKey && event.altKey && event.code === "KeyF" | ||||
| }; | ||||
|  | ||||
| export const actionSendToBack: Action = { | ||||
| @@ -56,12 +45,7 @@ export const actionSendToBack: Action = { | ||||
|     }; | ||||
|   }, | ||||
|   contextItemLabel: "Send to Back", | ||||
|   keyTest: event => event[META_KEY] && event.shiftKey && event.code === "KeyB", | ||||
|   PanelComponent: ({ updateData }) => ( | ||||
|     <button type="button" onClick={e => updateData(null)}> | ||||
|       Send to Back | ||||
|     </button> | ||||
|   ) | ||||
|   keyTest: event => event[META_KEY] && event.shiftKey && event.code === "KeyB" | ||||
| }; | ||||
|  | ||||
| export const actionBringToFront: Action = { | ||||
| @@ -73,10 +57,5 @@ export const actionBringToFront: Action = { | ||||
|     }; | ||||
|   }, | ||||
|   contextItemLabel: "Bring to Front", | ||||
|   keyTest: event => event[META_KEY] && event.shiftKey && event.code === "KeyF", | ||||
|   PanelComponent: ({ updateData }) => ( | ||||
|     <button type="button" onClick={e => updateData(null)}> | ||||
|       Bring to Front | ||||
|     </button> | ||||
|   ) | ||||
|   keyTest: event => event[META_KEY] && event.shiftKey && event.code === "KeyF" | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user