From a3d99a2ea86edbbd8004ae36d1147f9bdc0556fc Mon Sep 17 00:00:00 2001 From: sergesoroka Date: Wed, 11 Sep 2024 00:22:23 +0300 Subject: [PATCH] the h5web component in new tab --- components/Chart/Chart.jsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/components/Chart/Chart.jsx b/components/Chart/Chart.jsx index 143b5df..1b49eea 100755 --- a/components/Chart/Chart.jsx +++ b/components/Chart/Chart.jsx @@ -1,7 +1,7 @@ /* eslint-disable react/prop-types */ import * as Plot from "@observablehq/plot"; import { useEffect, useRef, useState } from "react"; -import { useNavigate } from "react-router-dom"; +import { Link, useNavigate } from "react-router-dom"; import useSWR from "swr"; export default function Chart({ imageSelected, setDomain, isNexusFile }) { @@ -103,11 +103,22 @@ export default function Chart({ imageSelected, setDomain, isNexusFile }) { > {copied ? "Copied to clipboard" : "Share a link"} + {/* { + navigate(`?h5web=${imageSelected}`); + if(!isNexusFile) { + setDomain(data.domain); + } + }} + >Share */}