diff --git a/src/app/components/PriceChart.tsx b/src/app/components/PriceChart.tsx index 41a904c0..500715a3 100644 --- a/src/app/components/PriceChart.tsx +++ b/src/app/components/PriceChart.tsx @@ -7,12 +7,15 @@ import { handleCrosshairMove, initializeLegend, initialPriceChartState, + setCopied, } from "../state/priceChartSlice"; import { useAppDispatch, useAppSelector, useTranslations } from "../hooks"; import { displayNumber, getPrecision } from "../utils"; import * as tailwindConfig from "../../../tailwind.config"; import { CopyToClipboard } from "react-copy-to-clipboard"; import { MdContentCopy } from "react-icons/md"; +import { shortenString } from "../utils"; +import { DexterToast } from "components/DexterToaster"; interface PriceChartProps { data: OHLCVData[]; @@ -267,7 +270,7 @@ enum ChartTabOptions { PAIR_INFO = "PAIR_INFO", } -export function PriceChart() { +export function TradingChartOrPairInfo() { const t = useTranslations(); const dispatch = useAppDispatch(); const candlePeriod = useAppSelector((state) => state.priceChart.candlePeriod); @@ -282,7 +285,7 @@ export function PriceChart() { return (
+
{t("resource")}
{shortenAddress(token1?.address)}
-+ {shortenString(token1?.address, 8, 20, "...")} +
+@@ -456,12 +468,14 @@ export function PairInfoTab() {
+
{t("resource")}
{shortenAddress(token2?.address)}
-+ {shortenString(token2?.address, 8, 20, "...")} +
+