refactor(examples): rename Graph to ReactFlow

This commit is contained in:
moklick
2020-05-11 13:53:58 +02:00
parent af02925e8f
commit 401c572d10
8 changed files with 23 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import Graph, { isEdge, removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
import ReactFlow, { isEdge, removeElements, addEdge, MiniMap, Controls } from 'react-flow-renderer';
import ColorSelectorNode from './ColorSelectorNode';
@@ -53,7 +53,7 @@ const CustomNodeGraph = () => {
const onConnect = (params) => setElements(els => addEdge(params, els));
return (
<Graph
<ReactFlow
elements={elements}
onElementClick={onElementClick}
onElementsRemove={onElementsRemove}
@@ -79,7 +79,7 @@ const CustomNodeGraph = () => {
}}
/>
<Controls />
</Graph>
</ReactFlow>
);
}