Skip to content

Commit d855f3f

Browse files
authored
Merge pull request #1875 from cprussin/search-sort-filter-publishers
feat(staking): sort, filter, and paginate publishers
2 parents 0935702 + 40991be commit d855f3f

File tree

8 files changed

+324
-167
lines changed

8 files changed

+324
-167
lines changed

apps/staking/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Data = {
3838
cooldown2: bigint;
3939
};
4040
integrityStakingPublishers: {
41-
name: string;
41+
name: string | undefined;
4242
publicKey: PublicKey;
4343
isSelf: boolean;
4444
selfStake: bigint;
@@ -196,7 +196,7 @@ export const loadData = async (
196196
integrityStakingPublishers: publishers.map(({ pubkey: publisher }) => ({
197197
apyHistory: [], // TODO
198198
isSelf: false, // TODO
199-
name: publisher.toString(),
199+
name: undefined, // TODO
200200
numFeeds: 0, // TODO
201201
poolCapacity: 100n, // TODO
202202
poolUtilization: 0n, // TODO

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export const Footer = ({
3636
}: Omit<HTMLAttributes<HTMLElement>, "children">) => (
3737
<footer
3838
className={clsx(
39-
"sticky bottom-0 mt-4 px-4 text-xs font-light text-neutral-400",
39+
"sticky bottom-0 mt-4 text-xs font-light text-neutral-400 sm:px-4",
4040
className,
4141
)}
4242
{...props}
4343
>
44-
<div className="border-x border-t border-neutral-600/50 bg-pythpurple-800">
44+
<div className="border-t border-neutral-600/50 bg-pythpurple-800 sm:border-x">
4545
<MaxWidth className="flex h-16 items-center justify-between sm:-mx-4">
4646
<div>© 2024 Pyth Data Association</div>
4747
<div className="relative -right-3 flex h-full items-center">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export const Header = ({
1212
...props
1313
}: Omit<HTMLAttributes<HTMLElement>, "children">) => (
1414
<header
15-
className={clsx("sticky top-0 mb-4 w-full px-4", className)}
15+
className={clsx("sticky top-0 mb-4 w-full sm:px-4", className)}
1616
{...props}
1717
>
18-
<div className="border-x border-b border-neutral-600/50 bg-pythpurple-800">
18+
<div className="border-b border-neutral-600/50 bg-pythpurple-800 sm:border-x">
1919
<MaxWidth className="flex h-16 items-center justify-between gap-8 sm:-mx-4">
2020
<Logo className="max-h-full py-4 text-pythpurple-100" />
2121
<WalletButton className="flex-none" />
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import { Styled } from "../Styled";
22

3-
export const MaxWidth = Styled("div", "w-full px-6 sm:px-12 overflow-hidden");
3+
export const MaxWidth = Styled(
4+
"div",
5+
"min-w-full px-6 sm:px-12 overflow-hidden",
6+
);

0 commit comments

Comments
 (0)