feat(edges): allow different types

This commit is contained in:
moklick
2019-07-24 23:25:14 +02:00
parent 6312f6bd1e
commit 9d44f26c68
10 changed files with 109 additions and 40 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ function usePrevious(value) {
export const Provider = (props) => {
const {
onNodeClick,
onElementClick,
children
} = props;
@@ -52,7 +52,7 @@ export const Provider = (props) => {
});
const graphContext = {
onNodeClick,
onElementClick,
state,
dispatch
};