From 265908d3c5924260727de5781f182b5a986e3a87 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 20 Jun 2022 01:47:11 -0400 Subject: [PATCH] tweak: squiggle chart on link hover --- .../components/dynamicSquiggleChart.js | 96 ++++++++---------- .../public/example-graph-and-squiggle.png | Bin 0 -> 236520 bytes 2 files changed, 45 insertions(+), 51 deletions(-) create mode 100644 packages/webpage-refactor/public/example-graph-and-squiggle.png diff --git a/packages/webpage-refactor/components/dynamicSquiggleChart.js b/packages/webpage-refactor/components/dynamicSquiggleChart.js index b865518..3d76ddc 100644 --- a/packages/webpage-refactor/components/dynamicSquiggleChart.js +++ b/packages/webpage-refactor/components/dynamicSquiggleChart.js @@ -24,57 +24,51 @@ const effectButtonStyle = "bg-transparent m-2 hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent rounded mt-5"; export function DynamicSquiggleChart({ link, stopShowing }) { - let usefulLink = { - source: link.source, - target: link.target, - squiggleString: link.squiggleString, - }; - return link == null ? ( - "" - ) : ( - /*{ -
+ if (link == null) { + return ""; + } else { + let usefulLink = { + source: link.source, + target: link.target, + squiggleString: link.squiggleString, + }; + return ( +
+