From 931f83058d17b8070d39dd7c0601b604e20fb246 Mon Sep 17 00:00:00 2001 From: Tong Li Date: Mon, 9 Dec 2024 15:21:15 +1100 Subject: [PATCH] Tong/453 connect wallet panel (#472) * feat: new connect wallet panel --------- Co-authored-by: wjrjerome --- .../Form/States/WalletNotConnected.tsx | 33 +++-- .../Staking/Form/States/wallet-icon.svg | 116 ++++++++++++++++-- src/app/components/Staking/Staking.tsx | 7 +- 3 files changed, 129 insertions(+), 27 deletions(-) diff --git a/src/app/components/Staking/Form/States/WalletNotConnected.tsx b/src/app/components/Staking/Form/States/WalletNotConnected.tsx index fd9dd9e9..282fcc52 100644 --- a/src/app/components/Staking/Form/States/WalletNotConnected.tsx +++ b/src/app/components/Staking/Form/States/WalletNotConnected.tsx @@ -1,28 +1,37 @@ +import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui"; import Image from "next/image"; import { useBTCWallet } from "@/app/context/wallet/BTCWalletProvider"; +import { getNetworkConfig } from "@/config/network.config"; -import connectIcon from "./connect-icon.svg"; import walletIcon from "./wallet-icon.svg"; export const WalletNotConnected = () => { const { open } = useBTCWallet(); + const { coinName } = getNetworkConfig(); return (
-
-
- Wallet +
+
+ Wallet
-

Connect wallet

-

- Please connect wallet to start staking -

+
+ + Connect wallet to start staking + + + To start staking your {coinName} first connect wallets then select a + Finality Provider + +
+
-
); }; diff --git a/src/app/components/Staking/Form/States/wallet-icon.svg b/src/app/components/Staking/Form/States/wallet-icon.svg index 0c5f2816..65ec9339 100644 --- a/src/app/components/Staking/Form/States/wallet-icon.svg +++ b/src/app/components/Staking/Form/States/wallet-icon.svg @@ -1,11 +1,105 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/app/components/Staking/Staking.tsx b/src/app/components/Staking/Staking.tsx index 477160b1..0737c4d7 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -563,16 +563,15 @@ export const Staking = () => { Bitcoin Staking -
-
+
+
-
-
+
{renderStakingForm()}