diff --git a/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx b/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx index 8ef75d27092..9f12b1e73ef 100644 --- a/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx +++ b/apps/dashboard/src/@/components/blocks/GatedSwitch.tsx @@ -4,7 +4,10 @@ import type { Team } from "@/api/team/get-team"; import { Button } from "@/components/ui/button"; import { Switch } from "@/components/ui/switch"; import { ToolTipLabel } from "@/components/ui/tooltip"; -import { planToTierRecordForGating } from "@/constants/planToTierRecord"; +import { + getUpgradePlan, + planToTierRecordForGating, +} from "@/constants/planToTierRecord"; import { cn } from "@/lib/utils"; import { getTeamPlanBadgeLabel, TeamPlanBadge } from "./TeamPlanBadge"; @@ -25,6 +28,7 @@ export const GatedSwitch: React.FC = ( const isUpgradeRequired = planToTierRecordForGating[props.currentPlan] < planToTierRecordForGating[props.requiredPlan]; + const upgradePlan = getUpgradePlan(props.requiredPlan); return ( = (

- {getTeamPlanBadgeLabel(props.requiredPlan, false)}+ + {getTeamPlanBadgeLabel(upgradePlan, false)}+ {" "} plan required

@@ -45,12 +49,11 @@ export const GatedSwitch: React.FC = (
@@ -62,7 +65,7 @@ export const GatedSwitch: React.FC = (
{isUpgradeRequired && ( @@ -97,7 +99,7 @@ export function UpsellContent(props: {