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.

Delete use-created-integrations.ts

Steven Tey3640588be968
diff --git a/apps/web/lib/swr/use-created-integrations.ts b/apps/web/lib/swr/use-created-integrations.ts
deleted file mode 100644
index dc0a0f5d0a..0000000000
--- a/apps/web/lib/swr/use-created-integrations.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { CreatedIntegrationProps } from "@/lib/types";
-import { fetcher } from "@dub/utils";
-import useSWR from "swr";
-import useWorkspace from "./use-workspace";
-
-export default function useCreatedIntegrations() {
- const { id } = useWorkspace();
-
- const { data: integrations, isValidating } = useSWR<
- CreatedIntegrationProps[]
- >(id && `/api/integrations?workspaceId=${id}`, fetcher, {
- dedupingInterval: 30000,
- });
-
- return {
- integrations,
- loading: integrations ? false : true,
- isValidating,
- };
-}