chore(figma-controls): rename props

This commit is contained in:
moklick
2022-12-08 22:06:07 +01:00
parent 08faffacee
commit aaa0854c62
2 changed files with 8 additions and 15 deletions
@@ -69,8 +69,7 @@ const FlowRenderer = ({
}: FlowRendererProps) => {
const nodesSelectionActive = useStore(selector);
const selectionKeyPressed = useKeyPress(selectionKeyCode);
const isSelectionMode = selectionKeyPressed || (selectionOnDrag && panOnDrag !== true);
const isSelecting = selectionKeyPressed || (selectionOnDrag && panOnDrag !== true);
useGlobalKeyHandler({ deleteKeyCode, multiSelectionKeyCode });
@@ -107,7 +106,7 @@ const FlowRenderer = ({
onPaneContextMenu={onPaneContextMenu}
onPaneScroll={onPaneScroll}
panOnDrag={panOnDrag}
isSelectionMode={!!isSelectionMode}
isSelecting={!!isSelecting}
selectionMode={selectionMode}
>
{children}