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.

improve probadgetooltip placement

Steven Teye2c777d6abde
diff --git a/apps/web/ui/modals/link-builder/link-preview.tsx b/apps/web/ui/modals/link-builder/link-preview.tsx
index 8963638ef6..f2d5db279a 100644
--- a/apps/web/ui/modals/link-builder/link-preview.tsx
+++ b/apps/web/ui/modals/link-builder/link-preview.tsx
@@ -5,6 +5,7 @@ import {
Icon,
InfoTooltip,
ShimmerDots,
+ SimpleTooltipContent,
Switch,
TooltipContent,
useKeyboardShortcut,
@@ -104,11 +105,10 @@ export function LinkPreview() {
</h2>
<InfoTooltip
content={
- <TooltipContent
+ <SimpleTooltipContent
title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."
- cta="Learn more"
+ cta="Learn more."
href="https://dub.co/help/article/custom-link-previews"
- target="_blank"
/>
}
/>
diff --git a/apps/web/ui/modals/link-builder/og-modal.tsx b/apps/web/ui/modals/link-builder/og-modal.tsx
index 1819770032..23bf4de8ac 100644
--- a/apps/web/ui/modals/link-builder/og-modal.tsx
+++ b/apps/web/ui/modals/link-builder/og-modal.tsx
@@ -8,8 +8,8 @@ import {
FileUpload,
Modal,
Popover,
+ SimpleTooltipContent,
Tooltip,
- TooltipContent,
} from "@dub/ui";
import { LoadingCircle, Magic, Unsplash } from "@dub/ui/icons";
import { resizeImage } from "@dub/utils";
@@ -222,11 +222,10 @@ function OGModalInner({
<h3 className="text-lg font-medium">Link Preview</h3>
<ProBadgeTooltip
content={
- <TooltipContent
+ <SimpleTooltipContent
title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."
- cta="Learn more"
+ cta="Learn more."
href="https://dub.co/help/article/custom-link-previews"
- target="_blank"
/>
}
/>
diff --git a/apps/web/ui/modals/link-builder/qr-code-preview.tsx b/apps/web/ui/modals/link-builder/qr-code-preview.tsx
index 6f145643c2..e4416ea5c2 100644
--- a/apps/web/ui/modals/link-builder/qr-code-preview.tsx
+++ b/apps/web/ui/modals/link-builder/qr-code-preview.tsx
@@ -1,9 +1,9 @@
import useDomain from "@/lib/swr/use-domain";
import useWorkspace from "@/lib/swr/use-workspace";
-import { ProBadgeTooltip } from "@/ui/shared/pro-badge-tooltip";
import { QRCode } from "@/ui/shared/qr-code";
import {
Button,
+ InfoTooltip,
ShimmerDots,
SimpleTooltipContent,
useInViewport,
@@ -78,7 +78,7 @@ export function QRCodePreview() {
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<h2 className="text-sm font-medium text-gray-700">QR Code</h2>
- <ProBadgeTooltip
+ <InfoTooltip
content={
<SimpleTooltipContent
title="Set a custom QR code design to improve click-through rates."
diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsx
index 8df0163f2d..f2140c85be 100644
--- a/apps/web/ui/modals/link-qr-modal.tsx
+++ b/apps/web/ui/modals/link-qr-modal.tsx
@@ -43,6 +43,7 @@ import {
import { HexColorInput, HexColorPicker } from "react-colorful";
import { toast } from "sonner";
import { useDebouncedCallback } from "use-debounce";
+import { ProBadgeTooltip } from "../shared/pro-badge-tooltip";
const DEFAULT_COLORS = [
"#000000",
@@ -150,7 +151,18 @@ function LinkQRModalInner({
}}
>
<div className="flex items-center justify-between">
- <h3 className="text-lg font-medium">QR Code Design</h3>
+ <div className="flex items-center gap-2">
+ <h3 className="text-lg font-medium">QR Code</h3>
+ <ProBadgeTooltip
+ content={
+ <SimpleTooltipContent
+ title="Set a custom QR code design to improve click-through rates."
+ cta="Learn more."
+ href="https://dub.co/help/article/custom-qr-codes"
+ />
+ }
+ />
+ </div>
<div className="max-md:hidden">
<Tooltip
content={