Skip to content

Commit

Permalink
Revert const plancode
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Nov 6, 2023
1 parent 4816aa2 commit bbbc0f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions front/components/PlansTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Button, PriceTable, RocketIcon, SparklesIcon } from "@dust-tt/sparkle";
import { Tab } from "@headlessui/react";
import React from "react";

import { PRO_PLAN_CODE } from "@app/lib/plans/pro_plans";
import { classNames } from "@app/lib/utils";
import { PlanType } from "@app/types/plan";

Expand Down Expand Up @@ -75,13 +74,13 @@ function ProPriceTable({
<PriceTable.Item label="Assistants can execute actions" />
<PriceTable.Item label="Workspace role and permissions" variant="dash" />
<PriceTable.ActionContainer>
{plan.code !== PRO_PLAN_CODE && (
{plan.code !== "PRO_PLAN_SEAT_29" && (
<Button
variant="primary"
size={biggerButtonSize}
label="Start now"
icon={RocketIcon}
disabled={isProcessing || plan.code === PRO_PLAN_CODE}
disabled={isProcessing || plan.code === "PRO_PLAN_SEAT_29"}
onClick={onClick}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions front/pages/w/[wId]/subscription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import AppLayout from "@app/components/sparkle/AppLayout";
import { subNavigationAdmin } from "@app/components/sparkle/navigation";
import { SendNotificationsContext } from "@app/components/sparkle/Notification";
import { Authenticator, getSession, getUserFromSession } from "@app/lib/auth";
import { PRO_PLAN_CODE } from "@app/lib/plans/pro_plans";
import { PlanType } from "@app/types/plan";
import { UserType, WorkspaceType } from "@app/types/user";

Expand Down Expand Up @@ -117,7 +116,8 @@ export default function Subscription({

const chipColor = plan.code === "FREE_TEST_PLAN" ? "emerald" : "sky";

const onClickProPlan = async () => await handleSubscribeToPlan(PRO_PLAN_CODE);
const onClickProPlan = async () =>
await handleSubscribeToPlan("PRO_PLAN_SEAT_29");
const onClickEnterprisePlan = () => {
window.open("mailto:[email protected]?subject=Upgrading to Enteprise plan");
};
Expand Down

0 comments on commit bbbc0f7

Please sign in to comment.