From 3d2eacccc99a081b2b5309b3332ba852219bab58 Mon Sep 17 00:00:00 2001 From: BennyKok Date: Thu, 25 Jan 2024 12:08:09 +0800 Subject: [PATCH] fix: build --- web/src/components/PricingPlan.tsx | 50 ++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/web/src/components/PricingPlan.tsx b/web/src/components/PricingPlan.tsx index 2845de4..6f38569 100644 --- a/web/src/components/PricingPlan.tsx +++ b/web/src/components/PricingPlan.tsx @@ -8,7 +8,6 @@ import { Check, Info, Minus } from "lucide-react"; import { Fragment } from "react"; import { auth } from "@clerk/nextjs"; -import { subscriptionPlanStatus } from "@/db/schema"; import { getCurrentPlan } from "../server/getCurrentPlan"; const tiers = [ @@ -38,7 +37,22 @@ const tiers = [ mostPopular: true, }, ]; -const sections = [ +type TierFeature = { + Basic?: string | JSX.Element | boolean; + Pro?: string | JSX.Element | boolean; + Enterprise?: string | JSX.Element | boolean; +}; + +type Feature = { + name: string; + tiers: TierFeature; +}; + +type Section = { + name: string; + features: Feature[]; +}; +const sections: Section[] = [ { name: "Features", features: [ @@ -212,7 +226,7 @@ export default async function PricingList() {