From 56ec012d27d6ba77938bff4d871a1a9ef50a8b0f Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Wed, 11 Dec 2024 09:31:17 -0800 Subject: [PATCH] Use correct term --- src/pages/pricing/index.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/pricing/index.tsx b/src/pages/pricing/index.tsx index d334a8f..16aedcb 100644 --- a/src/pages/pricing/index.tsx +++ b/src/pages/pricing/index.tsx @@ -132,14 +132,14 @@ function ContactUsButton({ className }: { className?: string }) { ); } -type AcademicSchedule = "semester" | "quarter" | "monthly"; +type AcademicCalendar = "semester" | "quarter" | "monthly"; type PaymentModel = "course" | "student"; export default function Pricing() { const controls = useAnimationControls(); - const [academicSchedule, setAcademicSchedule] = - React.useState("semester"); + const [academicCalendar, setAcademicCalendar] = + React.useState("semester"); const [paymentModel, setPaymentModel] = React.useState("course"); @@ -147,9 +147,9 @@ export default function Pricing() { const [showModal, setShowModal] = React.useState(false); let basicPrice = run(() => { - if (academicSchedule === "semester") { + if (academicCalendar === "semester") { return 8; - } else if (academicSchedule === "quarter") { + } else if (academicCalendar === "quarter") { return 6; } else { return 2; @@ -168,10 +168,10 @@ export default function Pricing() { controls.start({ scale: 1.3 }).then(() => controls.start({ scale: 1 })); }; - const updateAcademicSchedule = ( - academicSchedule: "semester" | "quarter" | "monthly" + const updateAcademicCalendar = ( + academicCalendar: "semester" | "quarter" | "monthly" ) => { - setAcademicSchedule(academicSchedule); + setAcademicCalendar(academicCalendar); controls.start({ scale: 1.3 }).then(() => controls.start({ scale: 1 })); }; @@ -215,11 +215,11 @@ export default function Pricing() {
- - Academic schedule + + Academic calendar { - updateAcademicSchedule(e.currentTarget.value as any); + updateAcademicCalendar(e.currentTarget.value as any); }} >