The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Terms update
Tim Wilson6b9161cd0c09
diff --git a/apps/web/ui/domains/register-domain-form.tsx b/apps/web/ui/domains/register-domain-form.tsxindex f5f06935ef..de85cad24c 100644--- a/apps/web/ui/domains/register-domain-form.tsx+++ b/apps/web/ui/domains/register-domain-form.tsx@@ -28,11 +28,13 @@ interface DomainSearchResult {export function RegisterDomainForm({variant = "default",saveOnly = false,+ showTerms = true,onSuccess,onCancel,}: {variant?: "default" | "modal";saveOnly?: boolean; // Whether to only save the data without actually sending invites+ showTerms?: boolean;onSuccess: (domain: string) => void;onCancel?: () => void;}) {@@ -295,7 +297,7 @@ export function RegisterDomainForm({</div>)}- {searchedDomain && (+ {searchedDomain && showTerms && (<p className="-my-2 text-pretty text-left text-sm text-neutral-400">By claiming your .link domain, you agree to our{" "}<a@@ -305,7 +307,8 @@ export function RegisterDomainForm({>terms</a>- .+ .<br />+ After the first year, your renewal is $12/year.</p>)}</div>diff --git a/apps/web/ui/modals/dot-link-offer-modal.tsx b/apps/web/ui/modals/dot-link-offer-modal.tsxindex b76ea23962..2c332b18f6 100644--- a/apps/web/ui/modals/dot-link-offer-modal.tsx+++ b/apps/web/ui/modals/dot-link-offer-modal.tsx@@ -68,6 +68,7 @@ function DotLinkOfferModal({</p><div className="mt-6 rounded-xl border border-neutral-100 bg-neutral-50 p-4"><RegisterDomainForm+ showTerms={false}onSuccess={() => {setShowDotLinkOfferModal(false);}}@@ -90,6 +91,18 @@ function DotLinkOfferModal({setShowDotLinkOfferModal(false);}}/>+ <p className="mt-6 text-pretty text-center text-xs text-neutral-500">+ By claiming your .link domain, you agree to our{" "}+ <a+ href="https://dub.co/help/article/free-dot-link-domain#terms-and-conditions"+ target="_blank"+ className="underline transition-colors hover:text-neutral-700"+ >+ terms+ </a>+ .<br />+ After the first year, your renewal is $12/year.+ </p></div></div></Modal>diff --git a/apps/web/ui/modals/upgraded-modal.tsx b/apps/web/ui/modals/upgraded-modal.tsxindex 5f26f1f8af..976b4cf577 100644--- a/apps/web/ui/modals/upgraded-modal.tsx+++ b/apps/web/ui/modals/upgraded-modal.tsx@@ -85,7 +85,7 @@ function UpgradedModal({<divref={scrollRef}onScroll={updateScrollProgress}- className="scrollbar-hide max-h-[calc(100vh-350px)] overflow-y-auto pb-6 text-left"+ className="scrollbar-hide max-h-[calc(100vh-400px)] overflow-y-auto pb-6 text-left"><h1 className="text-lg font-semibold text-neutral-900">Dub {plan?.name} looks good on you!@@ -108,6 +108,7 @@ function UpgradedModal({{!dotLinkClaimed && (<div className="mt-6 rounded-xl border border-neutral-100 bg-neutral-50 p-4"><RegisterDomainForm+ showTerms={false}onSuccess={() => {setShowUpgradedModal(false);}}@@ -135,6 +136,20 @@ function UpgradedModal({setShowUpgradedModal(false);}}/>+ {!dotLinkClaimed && (+ <p className="mt-6 text-pretty text-center text-xs text-neutral-500">+ By claiming your .link domain, you agree to our{" "}+ <a+ href="https://dub.co/help/article/free-dot-link-domain#terms-and-conditions"+ target="_blank"+ className="underline transition-colors hover:text-neutral-700"+ >+ terms+ </a>+ .<br />+ After the first year, your renewal is $12/year.+ </p>+ )}</div></div></Modal>