The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
started adding help article
Steven Tey6c2bd3c7e049
diff --git a/components/app/modals/link-qr-modal.tsx b/components/app/modals/link-qr-modal.tsxindex 2050b0f406..1ac86042d1 100644--- a/components/app/modals/link-qr-modal.tsx+++ b/components/app/modals/link-qr-modal.tsx@@ -13,7 +13,11 @@ import { Clipboard, Download, Photo } from "@/components/shared/icons";import { ChevronRight } from "lucide-react";import Modal from "#/ui/modal";import Switch from "#/ui/switch";-import Tooltip, { TooltipContent } from "#/ui/tooltip";+import Tooltip, {+ InfoTooltip,+ SimpleTooltipContent,+ TooltipContent,+} from "#/ui/tooltip";import { QRCodeSVG, getQRAsCanvas, getQRAsSVGDataUri } from "#/lib/qr";import useProject from "#/lib/swr/use-project";import { SimpleLinkProps } from "#/lib/types";@@ -21,7 +25,8 @@ import { getApexDomain, linkConstructor } from "#/lib/utils";import IconMenu from "@/components/shared/icon-menu";import Popover from "#/ui/popover";import { toast } from "sonner";-import { GOOGLE_FAVICON_URL } from "#/lib/constants";+import { GOOGLE_FAVICON_URL, HOME_DOMAIN } from "#/lib/constants";+import { useRouter } from "next/router";function LinkQRModalHelper({showLinkQRModal,@@ -182,7 +187,9 @@ function LinkQRModalHelper({}function AdvancedSettings({ qrData, setFgColor, showLogo, setShowLogo }) {- const { plan } = useProject();+ const router = useRouter();+ const { slug } = router.query;+ const { plan, logo } = useProject();const [expanded, setExpanded] = useState(false);const isApp = useMemo(() => {@@ -211,9 +218,20 @@ function AdvancedSettings({ qrData, setFgColor, showLogo, setShowLogo }) {<div><labelhtmlFor="logo-toggle"- className="block text-sm font-medium text-gray-700"+ className="flex items-center space-x-1">- Logo+ <p className="text-sm font-medium text-gray-700">Logo</p>+ {plan && plan !== "free" && (+ <InfoTooltip+ content={+ <SimpleTooltipContent+ title=""+ cta="How to update my QR Code logo?"+ href={`${HOME_DOMAIN}/help/article/how-to-set-custom-qrcode`}+ />+ }+ />+ )}</label>{plan && plan !== "free" ? (<div className="mt-1 flex items-center space-x-2">@@ -224,7 +242,9 @@ function AdvancedSettings({ qrData, setFgColor, showLogo, setShowLogo }) {thumbDimensions="w-5 h-5"thumbTranslate="translate-x-6"/>- <p className="text-sm text-gray-600">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">+ Show {!slug || (!logo && "Dub.sh")} Logo+ </p></div>) : (<Tooltipdiff --git a/content/help/how-to-set-custom-qrcode.mdx b/content/help/how-to-set-custom-qrcode.mdxnew file mode 100644index 0000000000..9593ace7a7--- /dev/null+++ b/content/help/how-to-set-custom-qrcode.mdx@@ -0,0 +1,17 @@+---+title: How to set a custom QR Code for a link?+updatedAt: 2023-07-26+summary: Learn how to set a custom QR Code for a link+author: steventey+categories:+ - link-management+related:+ - how-to-create-link+ - what-is-a-project+---++<Note variant="success">+ This feature is only available for [Pro plans and above](pro-plan).+</Note>++Your QR Codediff --git a/content/help/how-to-use-tags.mdx b/content/help/how-to-use-tags.mdxindex 50dab82c22..f4a6be0acc 100644--- a/content/help/how-to-use-tags.mdx+++ b/content/help/how-to-use-tags.mdx@@ -68,3 +68,17 @@ Inside the edit dropdown menu, you can:## Can I assign multiple tags to a link?Currently, we only support assigning one tag to a link. If you're interested in the ability to assign multiple tags to a link, please let us know by [creating an issuue here](https://dub.sh/issues).++## How many tags can I create?++The number of tags you can create depends on your plan:++- **Free plan**: Up to 3 tags+- **Pro plan**: Unlimited+- **Enterprise plan**: Unlimited++Learn more about the Pro plan on Dub [here](pro-plan).++<Note variant="warning">+ **Note**: You cannot create any tags when using `dub.sh` links.+</Note>