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 */}