Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion react-app/src/components/custom-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Graph } from "react-d3-graph"
import useWindowDimensions from "../utils/window-dimensions"
import generateConfig from "../utils/graph/generate-config"
import generateData from "../utils/graph/generate-data"
import { onClickNode, onClickLink } from "../utils/graph/generate-events"
import {onClickNode, onRightClickNode, onClickLink} from "../utils/graph/generate-events"

function CustomGraph() {
const { height, width } = useWindowDimensions();
Expand All @@ -13,6 +13,7 @@ function CustomGraph() {
config={generateConfig(height, width)}
onClickNode={onClickNode}
onClickLink={onClickLink}
onRightClickNode={onRightClickNode}
/>
</div>;
}
Expand Down
Loading