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.

add transfer domain tooltip

Steven Teye69170196f1a
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index b8c08af90d..97e15e3aec 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -515,19 +515,26 @@ export default function LinkCard({
shortcut="A"
className="h-9 px-2 font-medium"
/>
- {isDubDomain(domain) && (
- <Button
- text="Transfer"
- variant="outline"
- onClick={() => {
- setOpenPopover(false);
- setShowTransferLinkModal(true);
- }}
- icon={<FolderInput className="h-4 w-4" />}
- shortcut="T"
- className="h-9 px-2 font-medium"
- />
- )}
+ <Button
+ text="Transfer"
+ variant="outline"
+ onClick={() => {
+ setOpenPopover(false);
+ setShowTransferLinkModal(true);
+ }}
+ icon={<FolderInput className="h-4 w-4" />}
+ shortcut="T"
+ className="h-9 px-2 font-medium"
+ {...(!isDubDomain(domain) && {
+ disabledTooltip: (
+ <SimpleTooltipContent
+ title="Since this is a custom domain link, you can only transfer it to another workspace if you transfer the domain as well."
+ cta="Learn more."
+ href="https://dub.co/help/article/how-to-transfer-domains"
+ />
+ ),
+ })}
+ />
<Button
text="Copy Link ID"
variant="outline"