Skip to content

Commit

Permalink
fix balance view (#384)
Browse files Browse the repository at this point in the history
* fix balance view

* version bump and fix potentional error
  • Loading branch information
jeremy-babylonlabs authored Jul 29, 2024
1 parent 74c2e7d commit 1b81655
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.2.19",
"version": "0.2.20",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
44 changes: 23 additions & 21 deletions src/app/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,31 @@ export const Header: React.FC<HeaderProps> = ({
return (
<nav>
<div className="bg-base-300 shadow-sm">
<div className="container mx-auto flex w-full items-center justify-between gap-4 p-6 pb-4 md:pb-6">
<Logo />
<div className="flex flex-1">
<div className="hidden flex-1 xl:flex">
<TestingInfo />
<div className="container mx-auto flex-col">
<div className="w-full flex items-center justify-between gap-4 p-6 pb-4 md:pb-6">
<Logo />
<div className="flex flex-1">
<div className="hidden flex-1 xl:flex">
<TestingInfo />
</div>
</div>
<ConnectSmall
onConnect={onConnect}
address={address}
btcWalletBalanceSat={btcWalletBalanceSat}
onDisconnect={onDisconnect}
/>
<ThemeToggle />
</div>
<div
className={`container mx-auto flex w-full items-center gap-4 md:hidden md:p-0 ${address ? "justify-end p-6 pt-0" : ""}`}
>
<ConnectedSmall
address={address}
btcWalletBalanceSat={btcWalletBalanceSat}
onDisconnect={onDisconnect}
/>
</div>
<ConnectSmall
onConnect={onConnect}
address={address}
btcWalletBalanceSat={btcWalletBalanceSat}
onDisconnect={onDisconnect}
/>
<ThemeToggle />
</div>
<div
className={`${address && "justify-end p-6 pt-0"}container mx-auto flex w-full items-center gap-4 md:hidden md:p-0`}
>
<ConnectedSmall
address={address}
btcWalletBalanceSat={btcWalletBalanceSat}
onDisconnect={onDisconnect}
/>
</div>
</div>
<div className="container mx-auto flex w-full items-center p-6 pb-0 xl:hidden">
Expand Down

0 comments on commit 1b81655

Please sign in to comment.