1+ import { AiOutlineInfoCircle } from "react-icons/ai" ;
12import { FaBitcoin } from "react-icons/fa" ;
3+ import { Tooltip } from "react-tooltip" ;
24
35import { getNetworkConfig } from "@/config/network.config" ;
46import { satoshiToBtc } from "@/utils/btcConversions" ;
@@ -23,7 +25,7 @@ export const Summary: React.FC<SummaryProps> = ({
2325 < div className = "card flex flex-col gap-2 bg-base-300 p-4 shadow-sm xl:flex-row xl:items-center xl:justify-between xl:gap-4" >
2426 < h3 className = "mb-4 font-bold xl:mb-0" > Your staking summary</ h3 >
2527 < div className = "flex flex-1 justify-between gap-2" >
26- < div className = "flex flex-col gap-1 text-sm xl:flex-1 xl:flex-row xl:items-center xl:justify-center xl:gap-2 xl:text-base " >
28+ < div className = "flex flex-col gap-1 text-sm xl:flex-1 xl:flex-row xl:items-center xl:justify-center xl:gap-2" >
2729 < p className = "dark:text-neutral-content" > Total staked</ p >
2830 < div className = "flex items-center gap-1" >
2931 < FaBitcoin className = "text-primary" size = { 16 } />
@@ -36,8 +38,22 @@ export const Summary: React.FC<SummaryProps> = ({
3638 </ div >
3739 </ div >
3840 < div className = "divider divider-horizontal xl:m-0" />
39- < div className = "flex flex-col gap-1 text-sm xl:flex-1 xl:flex-row xl:items-center xl:justify-center xl:gap-2 xl:text-base" >
40- < p className = "dark:text-neutral-content" > Balance</ p >
41+ < div className = "flex flex-col gap-1 text-sm xl:flex-1 xl:flex-row xl:items-center xl:justify-center xl:gap-2" >
42+ < div className = "flex items-center justify-end gap-1" >
43+ < p className = "dark:text-neutral-content" > Stakable Balance</ p >
44+ < span
45+ className = "cursor-pointer text-xs"
46+ data-tooltip-id = { "tooltip-stakeable-balance" }
47+ data-tooltip-content = { `Stakable balance only includes confirmed Bitcoin balance.
48+ It does not include balance stemming from pending transactions.` }
49+ >
50+ < AiOutlineInfoCircle />
51+ </ span >
52+ < Tooltip
53+ id = { "tooltip-stakeable-balance" }
54+ className = "tooltip-wrap"
55+ />
56+ </ div >
4157 < div className = "flex items-center gap-1" >
4258 < FaBitcoin className = "text-primary" size = { 16 } />
4359 { typeof btcWalletBalanceSat === "number" ? (
@@ -53,7 +69,7 @@ export const Summary: React.FC<SummaryProps> = ({
5369 href = "https://discord.com/invite/babylonglobal"
5470 target = "_blank"
5571 rel = "noopener noreferrer"
56- className = "font-light text-primary hover:underline text-right lg:text-left "
72+ className = "font-light text-primary hover:underline text-right"
5773 >
5874 Get Test Tokens
5975 </ a >
0 commit comments