refactor(examples): rename graph to flow

This commit is contained in:
moklick
2020-05-14 10:57:08 +02:00
parent 267187b8d1
commit 0b7354610e
7 changed files with 42 additions and 21 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ const onNodeDragStop = node => console.log('drag stop', node);
const onLoad = graphInstance => console.log('graph loaded:', graphInstance);
const onElementClick = element => console.log('click', element);
const EmptyGraph = () => {
const EmptyFlow = () => {
const [elements, setElements] = useState([]);
const onElementsRemove = (elementsToRemove) =>
setElements(els => removeElements(elementsToRemove, els));
@@ -45,4 +45,4 @@ const EmptyGraph = () => {
);
}
export default EmptyGraph;
export default EmptyFlow;