refactor(minimap): use minimap package in examples

This commit is contained in:
Christopher Möller
2022-07-21 12:02:43 +02:00
parent be4dd6f1fa
commit 229c156d79
17 changed files with 37 additions and 41 deletions
+2 -1
View File
@@ -5,7 +5,6 @@ import ReactFlow, {
Background,
useNodesState,
useEdgesState,
MiniMap,
Controls,
Node,
Edge,
@@ -13,6 +12,8 @@ import ReactFlow, {
Connection,
} from '@react-flow/core';
import MiniMap from '@react-flow/minimap';
const onNodeDragStop = (_: MouseEvent, node: Node) =>
console.log('drag stop', node);
const onNodeClick = (_: MouseEvent, node: Node) => console.log('click', node);