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.

Show staging workspaces on OAuth authorize page

Kiran Kc3a7fc2847e6
diff --git a/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx b/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx
index 06ac770fa0..0f1ebcf499 100644
--- a/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx
+++ b/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx
@@ -9,7 +9,7 @@ import { WorkspaceProps } from "@/lib/types";
import { authorizeRequestSchema } from "@/lib/zod/schemas/oauth";
import { WorkspaceSelector } from "@/ui/workspaces/workspace-selector";
import { Button } from "@dub/ui";
-import { Integration } from "@prisma/client";
+import { Integration, WorkspaceEnvironment } from "@prisma/client";
import { useSession } from "next-auth/react";
import { useState } from "react";
import { toast } from "sonner";
@@ -117,6 +117,7 @@ export const AuthorizeForm = ({
workspaces?.find((workspace) => workspace.slug === slug) ?? null,
);
}}
+ environments={Object.values(WorkspaceEnvironment)}
/>
</div>
<div className="mt-4 flex justify-between gap-4">