From 9db30392640e11b1fd19cb4a58244ef28b66cffa Mon Sep 17 00:00:00 2001 From: Johnson Cherian Date: Tue, 12 Mar 2024 10:15:03 +0530 Subject: [PATCH] refactor: removed unused code --- frontend/src/Editor/DraggableBox.jsx | 35 ++++++++++++---------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/frontend/src/Editor/DraggableBox.jsx b/frontend/src/Editor/DraggableBox.jsx index 0e9c5e5eff..9af9308fa3 100644 --- a/frontend/src/Editor/DraggableBox.jsx +++ b/frontend/src/Editor/DraggableBox.jsx @@ -282,26 +282,21 @@ export const DraggableBox = React.memo( style={getStyles(isDragging, isSelectedComponent)} >
- {mode === 'edit' && - !readOnly && - // (configWidgetHandlerForModalComponent || mouseOver || isSelectedComponent) && - !isResizing && ( - - )} + {mode === 'edit' && !readOnly && !isResizing && ( + + )} Something went wrong.} beforeCapture={(scope) => {