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.

Adding icons to the upgrade plans (#3838)

Marcus Farrell0da3108f13f7
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page.tsx
index 228688f5ee..0b2098b42e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/upgrade/page.tsx
@@ -11,11 +11,13 @@ import {
Check,
CircleQuestion,
ConnectedDots4,
+ DubProductIcon,
Globe,
Hyperlink,
Icon,
Plug2,
ToggleGroup,
+ Tooltip,
Users2,
} from "@dub/ui";
import {
@@ -233,6 +235,7 @@ export default function WorkspaceBillingUpgradePage() {
</>
)}
</div>
+ <PlanIncludedProducts plan={plan} />
</div>
<div className="flex gap-3">
<button
@@ -325,6 +328,42 @@ export default function WorkspaceBillingUpgradePage() {
);
}
+function PlanIncludedProducts({ plan }: { plan: PlanDetails }) {
+ return (
+ <div className="mt-5 flex items-center gap-2 text-sm text-neutral-500">
+ <span>Includes</span>
+ <div className="flex items-center gap-1.5">
+ <Tooltip
+ content="[Dub Links](https://dub.co/links)"
+ contentClassName="px-3 py-2"
+ >
+ <span>
+ <DubProductIcon
+ product="links"
+ className="size-5"
+ iconClassName="size-3"
+ />
+ </span>
+ </Tooltip>
+ {plan.limits.payouts > 0 && (
+ <Tooltip
+ content="[Dub Partners](https://dub.co/partners)"
+ contentClassName="px-3 py-2"
+ >
+ <span>
+ <DubProductIcon
+ product="partners"
+ className="size-5"
+ iconClassName="size-3"
+ />
+ </span>
+ </Tooltip>
+ )}
+ </div>
+ </div>
+ );
+}
+
function BillingCompareSection({
category,
href,