From 22f86417e3a3a7d1310d515ddf44ba642d9ecee9 Mon Sep 17 00:00:00 2001 From: Tong Li Date: Sat, 7 Dec 2024 16:32:37 +1100 Subject: [PATCH] new connect wallet panel --- .../Form/States/WalletNotConnected.tsx | 31 +++-- .../Staking/Form/States/wallet-icon.svg | 116 ++++++++++++++++-- src/app/components/Staking/Staking.tsx | 7 +- 3 files changed, 127 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..a0de32cf 100644 --- a/src/app/components/Staking/Form/States/WalletNotConnected.tsx +++ b/src/app/components/Staking/Form/States/WalletNotConnected.tsx @@ -1,8 +1,8 @@ +import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui"; import Image from "next/image"; import { useBTCWallet } from "@/app/context/wallet/BTCWalletProvider"; -import connectIcon from "./connect-icon.svg"; import walletIcon from "./wallet-icon.svg"; export const WalletNotConnected = () => { @@ -10,19 +10,26 @@ export const WalletNotConnected = () => { return (
-
-
- Wallet +
+
+ Wallet
-

Connect wallet

-

- Please connect wallet to start staking -

+
+ + Connect wallet to start staking + + + To start staking your BTC 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 349e8236..ec1cbaa0 100644 --- a/src/app/components/Staking/Staking.tsx +++ b/src/app/components/Staking/Staking.tsx @@ -561,16 +561,15 @@ export const Staking = () => { Bitcoin Staking -
-
+
+
-
-
+
{renderStakingForm()}