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 partner-application-sheet.tsx

Tim Wilsonbc2d5225b784
diff --git a/apps/web/ui/partners/partner-application-sheet.tsx b/apps/web/ui/partners/partner-application-sheet.tsx
index d9e878c6da..73ab8f5359 100644
--- a/apps/web/ui/partners/partner-application-sheet.tsx
+++ b/apps/web/ui/partners/partner-application-sheet.tsx
@@ -10,14 +10,15 @@ import {
Button,
ChevronLeft,
ChevronRight,
+ Msgs,
Sheet,
useRouterStuff,
} from "@dub/ui";
import { fetcher } from "@dub/utils";
import { ProgramApplication } from "@prisma/client";
import Linkify from "linkify-react";
-
import { useAction } from "next-safe-action/hooks";
+import Link from "next/link";
import { Dispatch, SetStateAction, useState } from "react";
import { toast } from "sonner";
import useSWRImmutable from "swr/immutable";
@@ -39,6 +40,7 @@ function PartnerApplicationSheetContent({
onNext,
setIsOpen,
}: PartnerApplicationSheetProps) {
+ const { slug: workspaceSlug } = useWorkspace();
const [currentTabId, setCurrentTabId] = useState<string>("about");
return (
@@ -48,6 +50,18 @@ function PartnerApplicationSheetContent({
Partner application
</Sheet.Title>
<div className="flex items-center gap-4">
+ <Link
+ href={`/${workspaceSlug}/program/messages/${partner.id}`}
+ target="_blank"
+ >
+ <Button
+ variant="secondary"
+ text="Message"
+ icon={<Msgs className="size-4 shrink-0" />}
+ onClick={() => setIsOpen(false)}
+ className="h-9 rounded-lg px-4"
+ />
+ </Link>
<div className="flex items-center">
<Button
type="button"