From a82223dac2d628f151704fd85c924193198f38bb Mon Sep 17 00:00:00 2001 From: Haydn Ewers <27211+haydn@users.noreply.github.com> Date: Mon, 7 Nov 2022 10:07:49 +1100 Subject: [PATCH] Fix typescript errors --- components/NetworkGraph.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.51.2