The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix pattern in DeletePartnerLinkModal
Steven Teyf463c035fdfc
diff --git a/apps/web/ui/modals/delete-partner-link-modal.tsx b/apps/web/ui/modals/delete-partner-link-modal.tsxindex ee374673a1..f513029aa8 100644--- a/apps/web/ui/modals/delete-partner-link-modal.tsx+++ b/apps/web/ui/modals/delete-partner-link-modal.tsx@@ -3,7 +3,6 @@ import useProgramEnrollment from "@/lib/swr/use-program-enrollment";import { PartnerProfileLinkProps } from "@/lib/types";import { SimpleLinkCard } from "@/ui/links/simple-link-card";import { Button, Modal, useMediaQuery } from "@dub/ui";-import { getPrettyUrl } from "@dub/utils";import { useParams } from "next/navigation";import {Dispatch,@@ -50,8 +49,6 @@ function DeletePartnerLinkModalInner({link,});- const pattern = getPrettyUrl(partnerLink);-const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {e.preventDefault();if (!programEnrollment?.program.id) return;@@ -122,15 +119,15 @@ function DeletePartnerLinkModalInner({htmlFor="verification"className="block text-sm text-neutral-700">- To verify, type <span className="font-semibold">{pattern}</span>{" "}- below+ To verify, type{" "}+ <span className="font-semibold">confirm delete link</span> below</label><div className="relative mt-1.5 rounded-md shadow-sm"><inputtype="text"name="verification"id="verification"- pattern={pattern}+ pattern="confirm delete link"requiredautoFocus={!isMobile}autoComplete="off"