From a60d77ce175705ed1cb4952cb6857539bd5b9a8d Mon Sep 17 00:00:00 2001 From: moklick Date: Thu, 10 Jul 2025 07:46:27 +0200 Subject: [PATCH] chore(edge-routing): use builtintedge type --- examples/react/src/examples/EdgeRouting/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/react/src/examples/EdgeRouting/index.tsx b/examples/react/src/examples/EdgeRouting/index.tsx index 0830b431..5996f0b2 100644 --- a/examples/react/src/examples/EdgeRouting/index.tsx +++ b/examples/react/src/examples/EdgeRouting/index.tsx @@ -1,4 +1,4 @@ -import { ReactFlow, Node, Edge, Position, MarkerType } from '@xyflow/react'; +import { ReactFlow, Node, Position, MarkerType, BuiltInEdge } from '@xyflow/react'; const nodes: Node[] = [ // LTR @@ -169,7 +169,7 @@ const nodes: Node[] = [ }, ]; -const edges: Edge[] = [ +const edges: BuiltInEdge[] = [ { id: 'e1-2', source: '1', @@ -276,8 +276,8 @@ const defaultEdgeOptions = { }, }; -const SimpleEdge = () => { +function EdgeRouting() { return ; -}; +} -export default SimpleEdge; +export default EdgeRouting;