Skip to content

Commit

Permalink
refactor(hub): change plan names in billing badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jog1t committed Jan 8, 2025
1 parent 0c183bd commit 0e76aec
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { useIntersectionObserver } from "usehooks-ts";
import { projectBillingQueryOptions } from "../../queries";

const BILLING_PLAN_LABELS = {
[Rivet.ee.billing.Plan.Indie]: "Indie Plan",
[Rivet.ee.billing.Plan.Studio]: "Studio Plan",
[Rivet.ee.billing.Plan.Trial]: "Trial Plan",
[Rivet.ee.billing.Plan.Indie]: "Pro",
[Rivet.ee.billing.Plan.Studio]: "Team",
[Rivet.ee.billing.Plan.Trial]: "Free",
};

const BILLING_PLAN_COLORS = {
Expand Down Expand Up @@ -59,8 +59,6 @@ export function BillingPlanBadge({ projectId }: BillingPlanBadgeProps) {
return <Content projectId={projectId} />;
}

export function ProjectBillingPlanLabel({
plan,
}: { plan: Rivet.ee.billing.Plan }) {
export function ProjectBillingPlanLabel({ plan }: { plan: Rivet.ee.billing.Plan }) {
return BILLING_PLAN_LABELS[plan];
}

0 comments on commit 0e76aec

Please sign in to comment.