-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ba4b4d
commit bc3088b
Showing
5 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters