From 8f32a138c8358b55f678755e53574555d7b2a359 Mon Sep 17 00:00:00 2001 From: Bonchellon Date: Fri, 6 Feb 2026 02:34:16 +0300 Subject: [PATCH] 123 --- .../src/app/(dashboard)/dashboard/billing/page.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/(dashboard)/dashboard/billing/page.tsx b/apps/web/src/app/(dashboard)/dashboard/billing/page.tsx index 9207120..aa61f5f 100644 --- a/apps/web/src/app/(dashboard)/dashboard/billing/page.tsx +++ b/apps/web/src/app/(dashboard)/dashboard/billing/page.tsx @@ -5,7 +5,7 @@ import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'; import { Progress } from '@/components/ui/progress'; import { cn } from '@/lib/utils'; -import { SUBSCRIPTION_PLANS, formatPlanPrice } from '@coursecraft/shared'; +import { SUBSCRIPTION_PLANS, formatPlanPrice, type SubscriptionTierType } from '@coursecraft/shared'; const locale = 'ru'; @@ -16,11 +16,16 @@ const plans = SUBSCRIPTION_PLANS.map((plan) => ({ features: plan.featuresRu, })); -const currentPlan = { - tier: 'FREE' as const, +const currentPlan: { + tier: SubscriptionTierType; + coursesUsed: number; + coursesLimit: number; + renewalDate: string | null; +} = { + tier: 'FREE', coursesUsed: 1, coursesLimit: 2, - renewalDate: null as string | null, + renewalDate: null, }; export default function BillingPage() {