Skip to content

Commit ac185d9

Browse files
[Dashboard] Add pagination to server wallets page
1 parent e62fd3f commit ac185d9

File tree

1 file changed

+6
-1
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets

1 file changed

+6
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { ServerWalletsTable } from "./wallet-table/wallet-table";
88

99
export default async function TransactionsServerWalletsPage(props: {
1010
params: Promise<{ team_slug: string; project_slug: string }>;
11+
searchParams: Promise<{ page?: string }>;
1112
}) {
1213
const vaultClient = await createVaultClient({
1314
baseUrl: NEXT_PUBLIC_THIRDWEB_VAULT_URL,
1415
});
1516

1617
const { team_slug, project_slug } = await props.params;
18+
const { page } = await props.searchParams;
1719
const [authToken, project] = await Promise.all([
1820
getAuthToken(),
1921
getProject(team_slug, project_slug),
@@ -37,7 +39,10 @@ export default async function TransactionsServerWalletsPage(props: {
3739
auth: {
3840
accessToken: managementAccessToken,
3941
},
40-
options: {},
42+
options: {
43+
page: Number.parseInt(page ?? "0"),
44+
pageSize: 20, // TODO: add pagination on the client side
45+
},
4146
},
4247
})
4348
: { data: { items: [] }, error: null, success: true };

0 commit comments

Comments
 (0)