refactor(examples): rename Graph to ReactFlow

This commit is contained in:
moklick
2020-05-11 13:54:06 +02:00
parent af02925e8f
commit 401c572d10
8 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import Graph, { removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
import ReactFlow, { removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
const onNodeDragStop = node => console.log('drag stop', node);
const onLoad = graphInstance => console.log('graph loaded:', graphInstance);
@@ -22,7 +22,7 @@ const EmptyGraph = () => {
};
return (
<Graph
<ReactFlow
elements={elements}
onLoad={onLoad}
onElementClick={onElementClick}
@@ -41,7 +41,7 @@ const EmptyGraph = () => {
>
add node
</button>
</Graph>
</ReactFlow>
);
}