From 06aa1f00062de4c5e08b13a5e4f63fbea0235bb9 Mon Sep 17 00:00:00 2001 From: Andrei Liviu Georgescu <146103342+andreilgeorgescu@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:46:28 +0000 Subject: [PATCH] Update CoursePrice interface --- src/pages/courses/_components/CoursePrice.tsx | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/pages/courses/_components/CoursePrice.tsx b/src/pages/courses/_components/CoursePrice.tsx index 2e777ab4..2cb19bdc 100644 --- a/src/pages/courses/_components/CoursePrice.tsx +++ b/src/pages/courses/_components/CoursePrice.tsx @@ -4,27 +4,31 @@ interface Props { pricingPlanId: number; } +// interface Response { +// pricing_plan: { +// id: number; +// created_at: string; +// updated_at: string; +// name: string; +// price: number; +// currency: string; +// course_id: number; +// frequency: { +// type: string; +// billing_interval: string; +// billing_interval_count: number; +// access_limit_date: string | null; +// access_limit_interval: string | null; +// access_limit_duration: string | null; +// }; +// description: string; +// free_trial_length: number | null; +// enrollment_cap: number | null; +// }; +// } + interface Response { - pricing_plan: { - id: number; - created_at: string; - updated_at: string; - name: string; - price: number; - currency: string; - course_id: number; - frequency: { - type: string; - billing_interval: string; - billing_interval_count: number; - access_limit_date: string | null; - access_limit_interval: string | null; - access_limit_duration: string | null; - }; - description: string; - free_trial_length: number | null; - enrollment_cap: number | null; - }; + price: number; } export default function Example({ pricingPlanId }: Props) {