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 -1
View File
@@ -3,7 +3,6 @@ import React, { useCallback, MouseEvent, useEffect } from 'react';
import ReactFlow, {
Node,
addEdge,
Background,
useReactFlow,
ReactFlowProvider,
Connection,
@@ -12,6 +11,7 @@ import ReactFlow, {
useEdgesState,
} from '@react-flow/core';
import Background from '@react-flow/background';
import MiniMap from '@react-flow/minimap';
const initialNodes: Node[] = [