From 837ac0c419a274fd694055a018c4975dfb68c772 Mon Sep 17 00:00:00 2001 From: David Totraev Date: Thu, 24 Oct 2024 19:29:38 +0500 Subject: [PATCH] feat(phase-2): update preview modal --- src/app/components/Modals/PreviewModal.tsx | 17 +++++------------ src/app/components/Staking/Staking.tsx | 1 - 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/app/components/Modals/PreviewModal.tsx b/src/app/components/Modals/PreviewModal.tsx index 6823452d..3bdd5d4b 100644 --- a/src/app/components/Modals/PreviewModal.tsx +++ b/src/app/components/Modals/PreviewModal.tsx @@ -18,7 +18,6 @@ interface PreviewModalProps { stakingTimeBlocks: number; stakingFeeSat: number; feeRate: number; - unbondingTimeBlocks: number; confirmationDepth: number; unbondingFeeSat: number; awaitingWalletResponse: boolean; @@ -30,7 +29,6 @@ export const PreviewModal: React.FC = ({ finalityProvider, stakingAmountSat, stakingTimeBlocks, - unbondingTimeBlocks, onSign, stakingFeeSat, feeRate, @@ -89,16 +87,11 @@ export const PreviewModal: React.FC = ({

Term

{blocksToDisplayTime(stakingTimeBlocks)}

-
-

- On-demand unbonding -

-

- Enabled ({blocksToDisplayTime(unbondingTimeBlocks)} unbonding - time) -

+
+

Slashing ratio

+

12.3%

-
+

Unbonding fee

{`${maxDecimals(satoshiToBtc(unbondingFeeSat), 8)} ${coinName}`}

@@ -139,7 +132,7 @@ export const PreviewModal: React.FC = ({ Cancel
)} diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 3d546434..d3db7d79 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -622,7 +622,6 @@ export const Staking = () => { stakingFeeSat={stakingFeeSat} confirmationDepth={confirmationDepth} feeRate={feeRate} - unbondingTimeBlocks={unbondingTime} unbondingFeeSat={unbondingFeeSat} awaitingWalletResponse={awaitingWalletResponse} />