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.

fix conflicts

Kiran K38c909965109
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page.tsx
index c80caa7bb0..3f8f4d54c0 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page.tsx
@@ -1,6 +1,4 @@
-import { SlackCredential } from "@/lib/integrations/slack/type";
import { prisma } from "@/lib/prisma";
-import { SLACK_INTEGRATION_ID } from "@dub/utils";
import { notFound } from "next/navigation";
import IntegrationPageClient from "./page-client";
@@ -59,7 +57,6 @@ export default async function IntegrationPage({
? integration.installations[0]?.webhook?.id
: undefined;
-
return (
<IntegrationPageClient
integration={{
diff --git a/apps/web/ui/webhooks/webhook-header.tsx b/apps/web/ui/webhooks/webhook-header.tsx
index 82b496d10f..addf1a1032 100644
--- a/apps/web/ui/webhooks/webhook-header.tsx
+++ b/apps/web/ui/webhooks/webhook-header.tsx
@@ -15,7 +15,6 @@ import {
TokenAvatar,
useCopyToClipboard,
} from "@dub/ui";
-import { fetcher } from "@dub/utils";
import { ChevronLeft, CircleX, Send, Trash } from "lucide-react";
import { useAction } from "next-safe-action/hooks";
import Link from "next/link";
@@ -36,17 +35,6 @@ export default function WebhookHeader({ webhookId }: { webhookId: string }) {
const selectedLayoutSegment = useSelectedLayoutSegment();
const page = selectedLayoutSegment === null ? "" : selectedLayoutSegment;
- const [openPopover, setOpenPopover] = useState(false);
-
- const {
- data: webhook,
- isLoading,
- mutate,
- } = useSWR<WebhookProps>(
- `/api/webhooks/${webhookId}?workspaceId=${workspaceId}`,
- fetcher,
- );
-
const { DeleteWebhookModal, setDeleteWebhookModal } = useDeleteWebhookModal({
webhook,
});