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.

Update export-button.tsx

Steven Teyd8352ad5c1c6
diff --git a/apps/web/ui/analytics/events/export-button.tsx b/apps/web/ui/analytics/events/export-button.tsx
index aa22a61483..07e3625cda 100644
--- a/apps/web/ui/analytics/events/export-button.tsx
+++ b/apps/web/ui/analytics/events/export-button.tsx
@@ -37,13 +37,14 @@ export default function ExportButton({ onClick }: { onClick?: () => void }) {
icon={<Download className="h-4 w-4 shrink-0" />}
className="h-9 justify-start px-2 text-black"
text="Download as CSV"
- disabled={needsHigherPlan}
disabledTooltip={
- <TooltipContent
- title="Upgrade to our Business Plan to enable CSV downloads for events in your workspace."
- cta="Upgrade to Business"
- href={`/${slug}/upgrade`}
- />
+ needsHigherPlan && (
+ <TooltipContent
+ title="Upgrade to our Business Plan to enable CSV downloads for events in your workspace."
+ cta="Upgrade to Business"
+ href={`/${slug}/upgrade`}
+ />
+ )
}
onClick={() => {
toast.promise(exportData(), {