Skip to content

Commit ed51e17

Browse files
committed
feat(staking): re-enable stats
1 parent 0cc2380 commit ed51e17

File tree

4 files changed

+100
-24
lines changed

4 files changed

+100
-24
lines changed

apps/staking/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"@react-aria/toast": "3.0.0-beta.16",
3232
"@react-hookz/web": "^24.0.4",
3333
"@react-stately/toast": "3.0.0-beta.6",
34-
"@solana/wallet-adapter-base": "^0.9.20",
35-
"@solana/wallet-adapter-react": "^0.15.28",
36-
"@solana/wallet-adapter-react-ui": "^0.9.27",
34+
"@solana/wallet-adapter-base": "^0.9.23",
35+
"@solana/wallet-adapter-react": "^0.15.35",
36+
"@solana/wallet-adapter-react-ui": "^0.9.35",
3737
"@solana/wallet-adapter-wallets": "0.19.10",
38-
"@solana/web3.js": "^1.95.2",
38+
"@solana/web3.js": "1.92.3",
3939
"bcp-47": "^2.1.0",
4040
"clsx": "^2.1.1",
4141
"dnum": "^2.13.1",

apps/staking/src/components/Header/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CurrentStakeAccount } from "./current-stake-account";
55
import { HelpMenu } from "./help-menu";
66
import Logo from "./logo.svg";
77
import Logomark from "./logomark.svg";
8-
// import { Stats } from "./stats";
8+
import { Stats } from "./stats";
99
import { Link } from "../Link";
1010
import { MaxWidth } from "../MaxWidth";
1111
import { WalletButton } from "../WalletButton";
@@ -29,7 +29,7 @@ export const Header = ({
2929
<Logo className="hidden h-full lg:block" />
3030
<Logomark className="h-full lg:hidden" />
3131
</Link>
32-
{/* <Stats className="hidden gap-4 sm:flex lg:gap-6" /> */}
32+
<Stats className="hidden gap-4 sm:flex lg:gap-6" />
3333
</div>
3434
<div className="flex flex-none flex-row items-stretch gap-4 md:gap-8">
3535
<CurrentStakeAccount />
@@ -39,6 +39,6 @@ export const Header = ({
3939
</MaxWidth>
4040
</div>
4141
</header>
42-
{/* <Stats className="border-b border-neutral-600/50 py-4 text-center sm:hidden" /> */}
42+
<Stats className="border-b border-neutral-600/50 py-4 text-center sm:hidden" />
4343
</>
4444
);

apps/staking/src/components/Header/stats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { PythStakingClient } from "@pythnetwork/staking-sdk";
44
import { useConnection } from "@solana/wallet-adapter-react";
5-
import { Connection } from "@solana/web3.js";
5+
import type { Connection } from "@solana/web3.js";
66
import clsx from "clsx";
77
import type { HTMLProps } from "react";
88

pnpm-lock.yaml

Lines changed: 92 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)