File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ import { ServerWalletsTable } from "./wallet-table/wallet-table";
88
99export 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 } ;
You can’t perform that action at this time.
0 commit comments