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 paid plan required badge

Tim Wilson842034523be0
diff --git a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/invite/page.tsx b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/invite/page.tsx
index 3cd03f7d87..0e949685cf 100644
--- a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/invite/page.tsx
+++ b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/invite/page.tsx
@@ -8,6 +8,7 @@ export default function Invite() {
icon={Users}
title="Invite teammates"
description="Invite teammates to join your workspace. Invitations will be valid for 14 days."
+ paidPlanRequired
>
<Form />
</StepPage>
diff --git a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/step-page.tsx b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/step-page.tsx
index 55e50ac24f..1c4ad6032b 100644
--- a/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/step-page.tsx
+++ b/apps/web/app/app.dub.co/(onboarding)/onboarding/(steps)/step-page.tsx
@@ -1,5 +1,6 @@
import { Icon } from "@dub/ui";
import { cn } from "@dub/utils";
+import { Crown } from "lucide-react";
import { PropsWithChildren, ReactNode } from "react";
export function StepPage({
@@ -7,11 +8,13 @@ export function StepPage({
icon: Icon,
title,
description,
+ paidPlanRequired,
className,
}: PropsWithChildren<{
icon?: Icon;
title: ReactNode;
description: ReactNode;
+ paidPlanRequired?: boolean;
className?: string;
}>) {
return (
@@ -23,6 +26,12 @@ export function StepPage({
)}
>
{Icon && <StepIcon icon={Icon} />}
+ {paidPlanRequired && (
+ <div className="mt-6 flex items-center gap-1.5 rounded-full bg-gray-200/50 px-2.5 py-0.5 text-xs font-medium text-gray-700 shadow-inner">
+ <Crown className="size-3" />
+ Paid plan required
+ </div>
+ )}
<h1 className="mt-4 text-center text-2xl font-medium leading-tight">
{title}
</h1>