Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update page-client.tsx

Kiran K4def2b81b348
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
index 277b33ed9e..6d9cc45763 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
@@ -39,7 +39,7 @@ import {
STRIPE_INTEGRATION_ID,
ZAPIER_INTEGRATION_ID,
} from "@dub/utils";
-import { BookOpenText, ChevronLeft, Trash, Webhook } from "lucide-react";
+import { BookOpenText, ChevronLeft, Trash } from "lucide-react";
import { useAction } from "next-safe-action/hooks";
import Link from "next/link";
import { useState } from "react";
@@ -302,36 +302,8 @@ export default function IntegrationPageClient({
</Markdown>
)}
</div>
+
{SettingsComponent && <SettingsComponent {...integration} />}
</MaxWidthWrapper>
);
}
-
-const SlackWebhookSettings = ({ webhookId }: { webhookId: string }) => {
- const { slug } = useWorkspace();
-
- if (!webhookId) {
- return null;
- }
-
- return (
- <div className="w-full rounded-lg border border-gray-200 bg-white">
- <div className="flex items-center gap-x-2 border-b border-gray-200 px-6 py-4">
- <Webhook className="size-4" />
- <p className="text-sm font-medium text-gray-700">Configure webhook</p>
- </div>
-
- <div className="flex items-center justify-between p-6">
- <p className="text-sm leading-normal text-gray-600">
- Customize your Slack notifications by configuring webhook settings.
- You can choose which events to send to Slack and disable the
- notifications.
- </p>
-
- <Link href={`/${slug}/settings/webhooks/${webhookId}/edit`}>
- <Button className="w-fit" text="Update" variant="secondary" />
- </Link>
- </div>
- </div>
- );
-};