File tree Expand file tree Collapse file tree 8 files changed +829
-32
lines changed Expand file tree Collapse file tree 8 files changed +829
-32
lines changed Original file line number Diff line number Diff line change
1
+ import type { ThirdwebClient } from "thirdweb" ;
1
2
import type { Topic } from "@/api/webhook-configs" ;
2
3
import { WebhookConfigModal } from "./webhook-config-modal" ;
3
4
@@ -7,15 +8,19 @@ interface CreateWebhookConfigModalProps {
7
8
teamSlug : string ;
8
9
projectSlug : string ;
9
10
topics : Topic [ ] ;
11
+ client ?: ThirdwebClient ;
12
+ supportedChainIds ?: Array < number > ;
10
13
}
11
14
12
15
export function CreateWebhookConfigModal ( props : CreateWebhookConfigModalProps ) {
13
16
return (
14
17
< WebhookConfigModal
18
+ client = { props . client }
15
19
mode = "create"
16
20
onOpenChange = { props . onOpenChange }
17
21
open = { props . open }
18
22
projectSlug = { props . projectSlug }
23
+ supportedChainIds = { props . supportedChainIds }
19
24
teamSlug = { props . teamSlug }
20
25
topics = { props . topics }
21
26
/>
Original file line number Diff line number Diff line change
1
+ import type { ThirdwebClient } from "thirdweb" ;
1
2
import type { Topic , WebhookConfig } from "@/api/webhook-configs" ;
2
3
import { WebhookConfigModal } from "./webhook-config-modal" ;
3
4
@@ -8,15 +9,19 @@ interface EditWebhookConfigModalProps {
8
9
projectSlug : string ;
9
10
topics : Topic [ ] ;
10
11
webhookConfig : WebhookConfig ;
12
+ client ?: ThirdwebClient ;
13
+ supportedChainIds ?: Array < number > ;
11
14
}
12
15
13
16
export function EditWebhookConfigModal ( props : EditWebhookConfigModalProps ) {
14
17
return (
15
18
< WebhookConfigModal
19
+ client = { props . client }
16
20
mode = "edit"
17
21
onOpenChange = { props . onOpenChange }
18
22
open = { props . open }
19
23
projectSlug = { props . projectSlug }
24
+ supportedChainIds = { props . supportedChainIds }
20
25
teamSlug = { props . teamSlug }
21
26
topics = { props . topics }
22
27
webhookConfig = { props . webhookConfig }
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
3
import { redirect } from "next/navigation" ;
4
+ import type { ThirdwebClient } from "thirdweb" ;
4
5
import type { Topic , WebhookConfig } from "@/api/webhook-configs" ;
5
6
import type { WebhookSummaryStats } from "@/types/analytics" ;
6
7
import { WebhookConfigsTable } from "./webhook-configs-table" ;
@@ -13,6 +14,8 @@ interface WebhooksOverviewProps {
13
14
webhookConfigs : WebhookConfig [ ] ;
14
15
topics : Topic [ ] ;
15
16
metricsMap : Map < string , WebhookSummaryStats | null > ;
17
+ client ?: ThirdwebClient ;
18
+ supportedChainIds ?: Array < number > ;
16
19
}
17
20
18
21
export function WebhooksOverview ( {
@@ -23,6 +26,8 @@ export function WebhooksOverview({
23
26
webhookConfigs,
24
27
topics,
25
28
metricsMap,
29
+ client,
30
+ supportedChainIds,
26
31
} : WebhooksOverviewProps ) {
27
32
// Feature is enabled (matches server component behavior)
28
33
const isFeatureEnabled = true ;
@@ -35,9 +40,11 @@ export function WebhooksOverview({
35
40
// Show full webhook functionality
36
41
return (
37
42
< WebhookConfigsTable
43
+ client = { client }
38
44
metricsMap = { metricsMap }
39
45
projectId = { projectId }
40
46
projectSlug = { projectSlug }
47
+ supportedChainIds = { supportedChainIds }
41
48
teamId = { teamId }
42
49
teamSlug = { teamSlug }
43
50
topics = { topics }
You can’t perform that action at this time.
0 commit comments