Skip to content

Commit 6ed7115

Browse files
committed
Simpler way to add “plan” to the plan name
1 parent 18fa982 commit 6ed7115

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
ArrowRightOnRectangleIcon,
44
BeakerIcon,
55
BellAlertIcon,
6-
BookOpenIcon,
76
ChartBarIcon,
87
ChevronRightIcon,
98
ClockIcon,
@@ -59,16 +58,11 @@ import {
5958
import connectedImage from "../../assets/images/cli-connected.png";
6059
import disconnectedImage from "../../assets/images/cli-disconnected.png";
6160
import { FreePlanUsage } from "../billing/FreePlanUsage";
61+
import { InlineCode } from "../code/InlineCode";
6262
import { useDevPresence } from "../DevPresence";
6363
import { ImpersonationBanner } from "../ImpersonationBanner";
6464
import { Button, ButtonContent, LinkButton } from "../primitives/Buttons";
65-
import {
66-
Dialog,
67-
DialogContent,
68-
DialogFooter,
69-
DialogHeader,
70-
DialogTrigger,
71-
} from "../primitives/Dialog";
65+
import { Dialog, DialogContent, DialogHeader, DialogTrigger } from "../primitives/Dialog";
7266
import { Paragraph } from "../primitives/Paragraph";
7367
import {
7468
Popover,
@@ -86,7 +80,6 @@ import { HelpAndFeedback } from "./HelpAndFeedbackPopover";
8680
import { SideMenuHeader } from "./SideMenuHeader";
8781
import { SideMenuItem } from "./SideMenuItem";
8882
import { SideMenuSection } from "./SideMenuSection";
89-
import { InlineCode } from "../code/InlineCode";
9083

9184
type SideMenuUser = Pick<User, "email" | "admin"> & { isImpersonating: boolean };
9285
export type SideMenuProject = Pick<
@@ -280,7 +273,7 @@ function ProjectSelector({
280273

281274
let plan: string | undefined = undefined;
282275
if (currentPlan?.v3Subscription?.isPaying === false) {
283-
plan = "Free plan";
276+
plan = "Free";
284277
} else if (currentPlan?.v3Subscription?.isPaying === true) {
285278
plan = currentPlan.v3Subscription.plan?.title;
286279
}
@@ -326,7 +319,7 @@ function ProjectSelector({
326319
className="text-xs"
327320
to={v3BillingPath(organization)}
328321
>
329-
{plan} {plan !== "Free plan" && "plan"}
322+
{plan} plan
330323
</TextLink>
331324
)}
332325
<TextLink

0 commit comments

Comments
 (0)