From 8904089673edd6ffd99c652f76727963c24247d8 Mon Sep 17 00:00:00 2001 From: David Totraev Date: Mon, 9 Dec 2024 12:52:18 +0500 Subject: [PATCH] fix: hardcoded network name --- src/app/components/Modals/StakeModal.tsx | 6 +++++- src/app/components/Modals/UnbondModal.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/Modals/StakeModal.tsx b/src/app/components/Modals/StakeModal.tsx index 16c48c38..f8535bfd 100644 --- a/src/app/components/Modals/StakeModal.tsx +++ b/src/app/components/Modals/StakeModal.tsx @@ -1,7 +1,11 @@ import { MdEditNote } from "react-icons/md"; +import { getNetworkConfig } from "@/config/network.config"; + import { SubmitModal } from "./SubmitModal"; +const { networkName } = getNetworkConfig(); + interface StakeModalProps { processing?: boolean; open: boolean; @@ -20,7 +24,7 @@ export function StakeModal({ processing={processing} open={open} icon={} - title="Sign and Send to BTC" + title={`Sign and Send to ${networkName}`} onClose={onClose} onSubmit={onSubmit} > diff --git a/src/app/components/Modals/UnbondModal.tsx b/src/app/components/Modals/UnbondModal.tsx index 1ae99d5a..0bd2c11e 100644 --- a/src/app/components/Modals/UnbondModal.tsx +++ b/src/app/components/Modals/UnbondModal.tsx @@ -22,7 +22,7 @@ export const UnbondModal = ({ delegation, ...props }: UnbondModalProps) => { You are about to unbond your stake before its expiration. A transaction fee of {satoshiToBtc(delegation?.stakingAmount ?? 0)} {config.coinName}{" "} - will be deduced from your stake by the BTC signet network. + will be deduced from your stake by the {config.networkName} network.

The expected unbonding time will be about 7 days. After unbonded, you