diff --git a/components/NetworkGraph.tsx b/components/NetworkGraph.tsx index 60ea83d..e10bebb 100644 --- a/components/NetworkGraph.tsx +++ b/components/NetworkGraph.tsx @@ -8,6 +8,7 @@ import { SimulationLinkDatum, } from "d3-force"; import { Graph } from "@visx/network"; +import { Link } from "@visx/network/lib/types"; type Props = { width: number; @@ -59,7 +60,7 @@ const NetworkGraph = ({ - graph={d3Graph} linkComponent={({ link }) => { const dx = link.target.x - link.source.x;