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.

Merge branch 'main' into link-folders

Kiran Kca67230b21b0
diff --cc apps/web/ui/links/link-details-column.tsx
index 22f5fb54c3,5c25c5582f..73c5585bfe
--- a/apps/web/ui/links/link-details-column.tsx
+++ b/apps/web/ui/links/link-details-column.tsx
@@@ -182,14 -181,9 +182,14 @@@ function AnalyticsBadge({ link }: { lin
// Hacky fix for making sure the tooltip closes (by rerendering) when the modal opens
const [modalShowCount, setModalShowCount] = useState(0);
+ const canManageLink = useCheckFolderPermission(
+ link.folderId,
+ "folders.links.write",
+ );
+
return isMobile ? (
<Link
- href={`/${slug}/analytics?domain=${domain}&key=${key}&interval=all`}
+ href={`/${slug}/analytics?domain=${domain}&key=${key}&interval=${plan === "free" ? "30d" : plan === "pro" ? "1y" : "all"}`}
className="flex items-center gap-1 rounded-md border border-gray-200 bg-gray-50 px-2 py-0.5 text-sm text-gray-800"
>
<CursorRays className="h-4 w-4 text-gray-600" />