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 copy

Steven Tey7e4aa15c9f5b
diff --git a/apps/web/ui/workspaces/plan-features.tsx b/apps/web/ui/workspaces/plan-features.tsx
index 30f4412044..5d3a2849e2 100644
--- a/apps/web/ui/workspaces/plan-features.tsx
+++ b/apps/web/ui/workspaces/plan-features.tsx
@@ -37,33 +37,35 @@ export function PlanFeatures({
Everything in Pro, plus:
</motion.div>
)}
- {selectedPlan.features.map(({ text, footnote }, i) => (
- <motion.div
- key={i}
- variants={STAGGER_CHILD_VARIANTS}
- className="flex items-center space-x-2 text-sm text-gray-500"
- >
- <CheckCircleFill className="h-5 w-5 text-green-500" />
+ {selectedPlan.features
+ .filter((f) => f.id !== "sales")
+ .map(({ text, footnote }, i) => (
+ <motion.div
+ key={i}
+ variants={STAGGER_CHILD_VARIANTS}
+ className="flex items-center space-x-2 text-sm text-gray-500"
+ >
+ <CheckCircleFill className="h-5 w-5 text-green-500" />
- {footnote ? (
- <Tooltip
- content={
- typeof footnote === "string" ? (
- footnote
- ) : (
- <SimpleTooltipContent {...footnote} />
- )
- }
- >
- <p className="cursor-help text-gray-600 underline decoration-dotted underline-offset-2">
- {text}
- </p>
- </Tooltip>
- ) : (
- <p className="text-gray-600">{text}</p>
- )}
- </motion.div>
- ))}
+ {footnote ? (
+ <Tooltip
+ content={
+ typeof footnote === "string" ? (
+ footnote
+ ) : (
+ <SimpleTooltipContent {...footnote} />
+ )
+ }
+ >
+ <p className="cursor-help text-gray-600 underline decoration-dotted underline-offset-2">
+ {text}
+ </p>
+ </Tooltip>
+ ) : (
+ <p className="text-gray-600">{text}</p>
+ )}
+ </motion.div>
+ ))}
</motion.div>
);
}
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 4ac1ccd039..82dd6ca98b 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.1.11",
+ "version": "0.1.12",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 36c483217c..e1f6cc881b 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -1,4 +1,4 @@
-import { nFormatter } from "../functions";
+import { currencyFormatter, nFormatter } from "../functions";
import { INFINITY_NUMBER } from "./misc";
export type PlanFeature = {
@@ -72,7 +72,13 @@ const BUSINESS_PLAN_MODIFIER = ({
},
{
id: "sales",
- text: `$${nFormatter(sales / 100)} tracked sales/mo`,
+ text: `${currencyFormatter(sales / 100)} tracked sales/mo`,
+ footnote: {
+ title:
+ "Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",
+ cta: "Learn more.",
+ href: "https://dub.co/help/article/dub-conversions",
+ },
},
{
id: "retention",