From a7a2621cf6851ebe9f7216d776fdb207ee49e1c4 Mon Sep 17 00:00:00 2001 From: Govard Barkhatov Date: Mon, 19 Aug 2024 17:05:34 +0200 Subject: [PATCH] mempool ui url --- src/app/components/Delegations/Delegation.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/Delegations/Delegation.tsx b/src/app/components/Delegations/Delegation.tsx index de3e4958..e74187e5 100644 --- a/src/app/components/Delegations/Delegation.tsx +++ b/src/app/components/Delegations/Delegation.tsx @@ -12,6 +12,7 @@ import { durationTillNow } from "@/utils/formatTime"; import { getState, getStateTooltip } from "@/utils/getState"; import { maxDecimals } from "@/utils/maxDecimals"; import { trim } from "@/utils/trim"; +import { Network } from "@/utils/wallet/wallet_provider"; interface DelegationProps { finalityProviderMoniker: string; @@ -111,7 +112,12 @@ export const Delegation: React.FC = ({ } }; - const { coinName, mempoolApiUrl } = getNetworkConfig(); + const { coinName, network } = getNetworkConfig(); + + const mempoolUIUrl = + network === Network.MAINNET + ? "https://mempool.space" + : "https://mempool.space/signet"; return (
= ({