Skip to content

Commit

Permalink
update tooltip position
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs committed Aug 16, 2024
1 parent c784327 commit 7fd815d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/app/components/Summary/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,13 @@ export const Summary: React.FC<SummaryProps> = ({
</div>
<div className="divider divider-horizontal xl:m-0" />
<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">
<p className="dark:text-neutral-content">Stakable Balance</p>
<div className="flex items-center gap-1">
<FaBitcoin className="text-primary" size={16} />
{typeof btcWalletBalanceSat === "number" ? (
<p className="whitespace-nowrap font-semibold">
{maxDecimals(satoshiToBtc(btcWalletBalanceSat), 8)} {coinName}
</p>
) : (
<LoadingSmall text="Loading..." />
)}
</div>
<div>
<p className="dark:text-neutral-content">Stakable Balance</p>
<span
className="cursor-pointer text-xs"
data-tooltip-id={"tooltip-stakeable-balance"}
data-tooltip-content={`Stakable balance only includes confirmed Bitcoin balance.
It does not include balance stemming from pending transactions.`}
data-tooltip-place="top"
>
<AiOutlineInfoCircle />
</span>
Expand All @@ -65,6 +54,16 @@ export const Summary: React.FC<SummaryProps> = ({
className="tooltip-wrap"
/>
</div>
<div className="flex items-center gap-1">
<FaBitcoin className="text-primary" size={16} />
{typeof btcWalletBalanceSat === "number" ? (
<p className="whitespace-nowrap font-semibold">
{maxDecimals(satoshiToBtc(btcWalletBalanceSat), 8)} {coinName}
</p>
) : (
<LoadingSmall text="Loading..." />
)}
</div>
{!onMainnet && (
<a
href="https://discord.com/invite/babylonglobal"
Expand Down

0 comments on commit 7fd815d

Please sign in to comment.