From 2c1d1e175b8485d18e8f1b5c8497235193eb3f8d Mon Sep 17 00:00:00 2001 From: Crypto Minion <154598612+jrwbabylonlab@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:48:39 +1100 Subject: [PATCH] Revert "staking form ui refinement (#421)" This reverts commit 38ab9e1935e9d1900cbb86e63341cff8d00fb614. --- .../PersonalBalance/PersonalBalance.tsx | 2 +- .../FinalityProviders/FinalityProviders.tsx | 14 +- .../components/Staking/Form/StakingAmount.tsx | 72 ++------ .../components/Staking/Form/StakingFee.tsx | 77 +++------ src/app/components/Staking/Staking.tsx | 155 +++++++----------- src/app/components/Stats/Stats.tsx | 2 +- 6 files changed, 109 insertions(+), 213 deletions(-) diff --git a/src/app/components/PersonalBalance/PersonalBalance.tsx b/src/app/components/PersonalBalance/PersonalBalance.tsx index 2db42087..333456bb 100644 --- a/src/app/components/PersonalBalance/PersonalBalance.tsx +++ b/src/app/components/PersonalBalance/PersonalBalance.tsx @@ -5,7 +5,7 @@ import { StatItem } from "../Stats/StatItem"; export function PersonalBalance() { return (
- + Wallet Balance
diff --git a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx index 81120a20..bbfcb0cc 100644 --- a/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx +++ b/src/app/components/Staking/FinalityProviders/FinalityProviders.tsx @@ -1,4 +1,3 @@ -import { Heading, Text } from "@babylonlabs-io/bbn-core-ui"; import { useEffect } from "react"; import InfiniteScroll from "react-infinite-scroll-component"; @@ -44,13 +43,10 @@ export const FinalityProviders: React.FC = ({ } return ( -
- - Step 1 - - - Select a Finality Provider - + <> +

+ Step-1: Select a finality provider +

= ({ ))}
-
+ ); }; diff --git a/src/app/components/Staking/Form/StakingAmount.tsx b/src/app/components/Staking/Form/StakingAmount.tsx index eb91320a..55a53a12 100644 --- a/src/app/components/Staking/Form/StakingAmount.tsx +++ b/src/app/components/Staking/Form/StakingAmount.tsx @@ -1,7 +1,4 @@ -import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui"; import { ChangeEvent, FocusEvent, useEffect, useState } from "react"; -import { FaBitcoin } from "react-icons/fa6"; -import { twJoin } from "tailwind-merge"; import { getNetworkConfig } from "@/config/network.config"; import { btcToSatoshi, satoshiToBtc } from "@/utils/btc"; @@ -121,61 +118,24 @@ export const StakingAmount: React.FC = ({ return (