File tree Expand file tree Collapse file tree 7 files changed +723
-29
lines changed Expand file tree Collapse file tree 7 files changed +723
-29
lines changed Original file line number Diff line number Diff line change 1+ import type { ThirdwebClient } from "thirdweb" ;
12import type { Topic } from "@/api/webhook-configs" ;
23import { WebhookConfigModal } from "./webhook-config-modal" ;
34
@@ -7,15 +8,19 @@ interface CreateWebhookConfigModalProps {
78 teamSlug : string ;
89 projectSlug : string ;
910 topics : Topic [ ] ;
11+ client ?: ThirdwebClient ;
12+ supportedChainIds ?: Array < number > ;
1013}
1114
1215export function CreateWebhookConfigModal ( props : CreateWebhookConfigModalProps ) {
1316 return (
1417 < WebhookConfigModal
18+ client = { props . client }
1519 mode = "create"
1620 onOpenChange = { props . onOpenChange }
1721 open = { props . open }
1822 projectSlug = { props . projectSlug }
23+ supportedChainIds = { props . supportedChainIds }
1924 teamSlug = { props . teamSlug }
2025 topics = { props . topics }
2126 />
Original file line number Diff line number Diff line change 1+ import type { ThirdwebClient } from "thirdweb" ;
12import type { Topic , WebhookConfig } from "@/api/webhook-configs" ;
23import { WebhookConfigModal } from "./webhook-config-modal" ;
34
@@ -8,15 +9,19 @@ interface EditWebhookConfigModalProps {
89 projectSlug : string ;
910 topics : Topic [ ] ;
1011 webhookConfig : WebhookConfig ;
12+ client ?: ThirdwebClient ;
13+ supportedChainIds ?: Array < number > ;
1114}
1215
1316export function EditWebhookConfigModal ( props : EditWebhookConfigModalProps ) {
1417 return (
1518 < WebhookConfigModal
19+ client = { props . client }
1620 mode = "edit"
1721 onOpenChange = { props . onOpenChange }
1822 open = { props . open }
1923 projectSlug = { props . projectSlug }
24+ supportedChainIds = { props . supportedChainIds }
2025 teamSlug = { props . teamSlug }
2126 topics = { props . topics }
2227 webhookConfig = { props . webhookConfig }
Original file line number Diff line number Diff line change 11"use client" ;
22
33import { redirect } from "next/navigation" ;
4+ import type { ThirdwebClient } from "thirdweb" ;
45import type { Topic , WebhookConfig } from "@/api/webhook-configs" ;
56import type { WebhookSummaryStats } from "@/types/analytics" ;
67import { WebhookConfigsTable } from "./webhook-configs-table" ;
@@ -13,6 +14,8 @@ interface WebhooksOverviewProps {
1314 webhookConfigs : WebhookConfig [ ] ;
1415 topics : Topic [ ] ;
1516 metricsMap : Map < string , WebhookSummaryStats | null > ;
17+ client ?: ThirdwebClient ;
18+ supportedChainIds ?: Array < number > ;
1619}
1720
1821export function WebhooksOverview ( {
@@ -23,6 +26,8 @@ export function WebhooksOverview({
2326 webhookConfigs,
2427 topics,
2528 metricsMap,
29+ client,
30+ supportedChainIds,
2631} : WebhooksOverviewProps ) {
2732 // Feature is enabled (matches server component behavior)
2833 const isFeatureEnabled = true ;
@@ -35,9 +40,11 @@ export function WebhooksOverview({
3540 // Show full webhook functionality
3641 return (
3742 < WebhookConfigsTable
43+ client = { client }
3844 metricsMap = { metricsMap }
3945 projectId = { projectId }
4046 projectSlug = { projectSlug }
47+ supportedChainIds = { supportedChainIds }
4148 teamId = { teamId }
4249 teamSlug = { teamSlug }
4350 topics = { topics }
You can’t perform that action at this time.
0 commit comments