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";
8
8
9
9
export default async function TransactionsServerWalletsPage ( props : {
10
10
params : Promise < { team_slug : string ; project_slug : string } > ;
11
+ searchParams : Promise < { page ?: string } > ;
11
12
} ) {
12
13
const vaultClient = await createVaultClient ( {
13
14
baseUrl : NEXT_PUBLIC_THIRDWEB_VAULT_URL ,
14
15
} ) ;
15
16
16
17
const { team_slug, project_slug } = await props . params ;
18
+ const { page } = await props . searchParams ;
17
19
const [ authToken , project ] = await Promise . all ( [
18
20
getAuthToken ( ) ,
19
21
getProject ( team_slug , project_slug ) ,
@@ -37,7 +39,10 @@ export default async function TransactionsServerWalletsPage(props: {
37
39
auth : {
38
40
accessToken : managementAccessToken ,
39
41
} ,
40
- options : { } ,
42
+ options : {
43
+ page : Number . parseInt ( page ?? "0" ) ,
44
+ pageSize : 20 , // TODO: add pagination on the client side
45
+ } ,
41
46
} ,
42
47
} )
43
48
: { data : { items : [ ] } , error : null , success : true } ;
You can’t perform that action at this time.
0 commit comments