Skip to content

Commit

Permalink
feat(staking): re-enable stats
Browse files Browse the repository at this point in the history
  • Loading branch information
cprussin committed Oct 10, 2024
1 parent 0cc2380 commit ed51e17
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 24 deletions.
8 changes: 4 additions & 4 deletions apps/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"@react-aria/toast": "3.0.0-beta.16",
"@react-hookz/web": "^24.0.4",
"@react-stately/toast": "3.0.0-beta.6",
"@solana/wallet-adapter-base": "^0.9.20",
"@solana/wallet-adapter-react": "^0.15.28",
"@solana/wallet-adapter-react-ui": "^0.9.27",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-react-ui": "^0.9.35",
"@solana/wallet-adapter-wallets": "0.19.10",
"@solana/web3.js": "^1.95.2",
"@solana/web3.js": "1.92.3",
"bcp-47": "^2.1.0",
"clsx": "^2.1.1",
"dnum": "^2.13.1",
Expand Down
6 changes: 3 additions & 3 deletions apps/staking/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CurrentStakeAccount } from "./current-stake-account";
import { HelpMenu } from "./help-menu";
import Logo from "./logo.svg";
import Logomark from "./logomark.svg";
// import { Stats } from "./stats";
import { Stats } from "./stats";
import { Link } from "../Link";
import { MaxWidth } from "../MaxWidth";
import { WalletButton } from "../WalletButton";
Expand All @@ -29,7 +29,7 @@ export const Header = ({
<Logo className="hidden h-full lg:block" />
<Logomark className="h-full lg:hidden" />
</Link>
{/* <Stats className="hidden gap-4 sm:flex lg:gap-6" /> */}
<Stats className="hidden gap-4 sm:flex lg:gap-6" />
</div>
<div className="flex flex-none flex-row items-stretch gap-4 md:gap-8">
<CurrentStakeAccount />
Expand All @@ -39,6 +39,6 @@ export const Header = ({
</MaxWidth>
</div>
</header>
{/* <Stats className="border-b border-neutral-600/50 py-4 text-center sm:hidden" /> */}
<Stats className="border-b border-neutral-600/50 py-4 text-center sm:hidden" />
</>
);
2 changes: 1 addition & 1 deletion apps/staking/src/components/Header/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { PythStakingClient } from "@pythnetwork/staking-sdk";
import { useConnection } from "@solana/wallet-adapter-react";
import { Connection } from "@solana/web3.js";
import type { Connection } from "@solana/web3.js";
import clsx from "clsx";
import type { HTMLProps } from "react";

Expand Down
108 changes: 92 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed51e17

Please sign in to comment.