refactor(background): move background to own package, replace example import

This commit is contained in:
Christopher Möller
2022-07-21 13:25:04 +02:00
parent 229c156d79
commit 272d0dfcb4
29 changed files with 384 additions and 275 deletions
+1 -2
View File
@@ -2,14 +2,13 @@ import React, { MouseEvent } from 'react';
import ReactFlow, {
ReactFlowProvider,
Background,
BackgroundVariant,
Node,
Edge,
useReactFlow,
} from '@react-flow/core';
import Minimap from '@react-flow/minimap';
import Background, { BackgroundVariant } from '@react-flow/background';
const onNodeDrag = (_: MouseEvent, node: Node) => console.log('drag', node);
const onNodeDragStop = (_: MouseEvent, node: Node) =>