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, { MiniMap, Controls } from 'react-flow-renderer';
import ReactFlow, { MiniMap, Controls } from 'react-flow-renderer';
const initialElements = [
{ id: '1', type: 'input', data: { label: 'Node 1' }, position: { x: 250, y: 5 } },
@@ -18,7 +18,7 @@ const EmptyGraph = () => {
};
return (
<Graph
<ReactFlow
elements={initialElements}
style={{ width: '100%', height: '100%' }}
backgroundType="lines"
@@ -39,7 +39,7 @@ const EmptyGraph = () => {
/>
</label>
</div>
</Graph>
</ReactFlow>
);
}