From cda6683122213a19ba1a8c779016bf76832de22c Mon Sep 17 00:00:00 2001 From: plouc Date: Sat, 1 Jan 2022 03:06:41 +0900 Subject: [PATCH] feat(network): fix codesandbox example --- examples/codesandbox/src/charts/Network.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/codesandbox/src/charts/Network.tsx b/examples/codesandbox/src/charts/Network.tsx index 20e68d7e74..e8ccc03b92 100644 --- a/examples/codesandbox/src/charts/Network.tsx +++ b/examples/codesandbox/src/charts/Network.tsx @@ -9,7 +9,7 @@ import { useChart } from '../hooks' const props = { iterations: 60, margin: { bottom: 30, top: 30, left: 30, right: 30 }, - nodeColor: (node: ComputedNode) => node.color, + nodeColor: (node: ComputedNode) => node.color, repulsivity: 6, } @@ -17,8 +17,8 @@ export function Network() { const [data, flavor] = useChart(generateNetworkData) if (flavor === 'canvas') { - return + return } - return + return }