Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 1b81655

Browse files
fix balance view (#384)
* fix balance view * version bump and fix potentional error
1 parent 74c2e7d commit 1b81655

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-staking",
3-
"version": "0.2.19",
3+
"version": "0.2.20",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

src/app/components/Header/Header.tsx

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,31 @@ export const Header: React.FC<HeaderProps> = ({
2121
return (
2222
<nav>
2323
<div className="bg-base-300 shadow-sm">
24-
<div className="container mx-auto flex w-full items-center justify-between gap-4 p-6 pb-4 md:pb-6">
25-
<Logo />
26-
<div className="flex flex-1">
27-
<div className="hidden flex-1 xl:flex">
28-
<TestingInfo />
24+
<div className="container mx-auto flex-col">
25+
<div className="w-full flex items-center justify-between gap-4 p-6 pb-4 md:pb-6">
26+
<Logo />
27+
<div className="flex flex-1">
28+
<div className="hidden flex-1 xl:flex">
29+
<TestingInfo />
30+
</div>
2931
</div>
32+
<ConnectSmall
33+
onConnect={onConnect}
34+
address={address}
35+
btcWalletBalanceSat={btcWalletBalanceSat}
36+
onDisconnect={onDisconnect}
37+
/>
38+
<ThemeToggle />
39+
</div>
40+
<div
41+
className={`container mx-auto flex w-full items-center gap-4 md:hidden md:p-0 ${address ? "justify-end p-6 pt-0" : ""}`}
42+
>
43+
<ConnectedSmall
44+
address={address}
45+
btcWalletBalanceSat={btcWalletBalanceSat}
46+
onDisconnect={onDisconnect}
47+
/>
3048
</div>
31-
<ConnectSmall
32-
onConnect={onConnect}
33-
address={address}
34-
btcWalletBalanceSat={btcWalletBalanceSat}
35-
onDisconnect={onDisconnect}
36-
/>
37-
<ThemeToggle />
38-
</div>
39-
<div
40-
className={`${address && "justify-end p-6 pt-0"}container mx-auto flex w-full items-center gap-4 md:hidden md:p-0`}
41-
>
42-
<ConnectedSmall
43-
address={address}
44-
btcWalletBalanceSat={btcWalletBalanceSat}
45-
onDisconnect={onDisconnect}
46-
/>
4749
</div>
4850
</div>
4951
<div className="container mx-auto flex w-full items-center p-6 pb-0 xl:hidden">

0 commit comments

Comments
 (0)