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

View File

@@ -6,13 +6,11 @@ import ColorSelectorNode from './ColorSelectorNode';
const onNodeDragStop = node => console.log('drag stop', node);
const onElementClick = element => console.log('click', element);
const onLoad = (graph) => {
console.log('graph loaded:', graph);
};
const onLoad = (graph) => console.log('graph loaded:', graph);
const initBgColor = '#f0e742';
const CustomNodeGraph = () => {
const CustomNodeFlow = () => {
const [elements, setElements] = useState([]);
const [bgColor, setBgColor] = useState(initBgColor);
@@ -83,4 +81,4 @@ const CustomNodeGraph = () => {
);
}
export default CustomNodeGraph;
export default CustomNodeFlow;