chore(examples): only use bundle

This commit is contained in:
moklick
2022-08-09 18:55:32 +02:00
parent affae72f7e
commit 0f835a2961
48 changed files with 194 additions and 513 deletions
+4 -8
View File
@@ -5,8 +5,9 @@ import {
Node,
Edge,
ReactFlowProvider,
} from '@react-flow/core';
import { Background, BackgroundVariant } from '@react-flow/background';
Background,
BackgroundVariant,
} from '@react-flow/bundle';
const defaultNodes: Node[] = [
{
@@ -77,12 +78,7 @@ const DefaultNodes = () => {
};
return (
<ReactFlow
defaultNodes={defaultNodes}
defaultEdges={defaultEdges}
defaultEdgeOptions={defaultEdgeOptions}
fitView
>
<ReactFlow defaultNodes={defaultNodes} defaultEdges={defaultEdges} defaultEdgeOptions={defaultEdgeOptions} fitView>
<Background variant={BackgroundVariant.Lines} />
<div style={{ position: 'absolute', right: 10, top: 10, zIndex: 4 }}>