Skip to content

Commit

Permalink
fix: minor text update (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Jan 8, 2025
1 parent 4ba4b4d commit bc3088b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
5 changes: 4 additions & 1 deletion src/app/components/Modals/Phase2Here.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export const Phase2HereModal = ({
During the initial phase of the {bbnNetworkFullName} launch, eligibility
criteria will be in place for stake registration. Over time, access will
gradually expand to allow the registration of all existing stakers and
the creation of new ones. Learn more here
the creation of new ones.{" "}
<a href="https://babylonlabs.io/blog/babylon-phase-2-testnet-launch">
Learn more here
</a>
</p>
{shouldDisplayTestingMsg() && (
<p className="text-base text-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text } from "@babylonlabs-io/bbn-core-ui";

import { getNetworkConfigBBN } from "@/config/network/bbn";
import { getNetworkConfig } from "@/config/network";

import { SubmitModal } from "../SubmitModal";

Expand All @@ -24,7 +24,7 @@ const SuccessIcon = () => (
</svg>
);

const { networkFullName } = getNetworkConfigBBN();
const { bbn } = getNetworkConfig();

export function RegistrationEndModal({
open,
Expand All @@ -41,9 +41,10 @@ export function RegistrationEndModal({
cancelButton={undefined}
>
<Text variant="body1" className="text-center">
Your staking transaction has been successfully registered to the
{networkFullName}. It will be activated and receive voting power in a
few blocks. You can monitor the Activity tab for the activation status.
Your staking transaction has been successfully registered to the{" "}
{bbn.networkFullName}. It will be activated and receive voting power in
a few blocks. You can monitor the Activity tab for the activation
status.
</Text>
</SubmitModal>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Modals/SlashingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SlashingModal = (props: UnbondModalProps) => {
return (
<ConfirmationModal title="Withdraw Balance" {...props}>
<Text variant="body1" className="pt-8 pb-10">
Your finality provider equivocated(double-voted) leading to{" "}
Your finality provider equivocated (double-voted) leading to{" "}
{slashingRate}% of your stake getting slashed. You are about to withdraw
the remaining balance. A transaction fee will be deducted from your
stake by the {networkConfig.btc.networkName} network.
Expand Down
11 changes: 6 additions & 5 deletions src/app/components/Modals/StakeModal.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
import { BiSolidBadgeCheck } from "react-icons/bi";

import { getNetworkConfigBTC } from "@/config/network/btc";
import { getNetworkConfig } from "@/config/network";

import { SubmitModal } from "./SubmitModal";

const { networkName } = getNetworkConfigBTC();

interface StakeModalProps {
processing?: boolean;
open: boolean;
onSubmit?: () => void;
}

const { btc, bbn } = getNetworkConfig();

export const StakeModal = ({ processing, open, onSubmit }: StakeModalProps) => (
<SubmitModal
processing={processing}
open={open}
icon={<BiSolidBadgeCheck className="text-5xl" />}
title="Verified"
submitButton={`Stake on ${networkName}`}
submitButton={`Stake ${btc.coinName}`}
onSubmit={onSubmit}
>
Your request has been verified by the babylon blockchain. You can now stake
Your request has been verified by the ${bbn.networkFullName}. You can now
stake!
</SubmitModal>
);
11 changes: 5 additions & 6 deletions src/app/components/Modals/VerificationModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Loader } from "@babylonlabs-io/bbn-core-ui";

import { getNetworkConfigBTC } from "@/config/network/btc";
import { getNetworkConfig } from "@/config/network";

import { SubmitModal } from "./SubmitModal";

Expand All @@ -10,7 +10,7 @@ interface VerificationModalProps {
step: 1 | 2;
}

const { networkName } = getNetworkConfigBTC();
const { btc, bbn } = getNetworkConfig();

const VERIFICATION_STEPS = {
1: {
Expand All @@ -19,16 +19,15 @@ const VERIFICATION_STEPS = {
1/2 <br /> Processing Confirmation
</>
),
description:
"Waiting for the staking confirmation to be confirmed on Babylon chain.",
description: `Waiting for the staking confirmation to be confirmed on ${bbn.networkFullName}.`,
},
2: {
title: (
<>
2/2 <br /> Pending Verification
</>
),
description: "The Babylon chain is verifying your staking transaction.",
description: `The ${bbn.networkFullName} is verifying your staking transaction.`,
},
} as const;

Expand All @@ -42,7 +41,7 @@ export const VerificationModal = ({
open={open}
icon={<Loader size={48} />}
title={VERIFICATION_STEPS[step].title}
submitButton={`Stake on ${networkName}`}
submitButton={`Stake ${btc.coinName}`}
onSubmit={() => {}}
>
{VERIFICATION_STEPS[step].description}
Expand Down

0 comments on commit bc3088b

Please sign in to comment.