Skip to content

Commit 0ccb534

Browse files
committed
Refactor PricingAddons component to improve code formatting and enhance readability
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 372e21b commit 0ccb534

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
309309
color="primary" />}
310310
sx={{ display: "flex", justifySelf: "flex-end", marginRight: -1, marginTop: "-0.5rem", marginLeft: 1, padding: 0, alignItems: "flex-start" }}
311311
/>
312-
<FeatureDetails
312+
<FeatureDetails
313313
category="Practical Learning"
314314
description="An inclusive, collaborative, hands-on learning environment powered by Kanvas with labs for students."
315315
>
@@ -354,7 +354,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
354354
} else {
355355
targetSubAddon = selectedAddon?.subAddOns?.find(sub => sub.id === "academy-theory");
356356
}
357-
357+
358358
if (targetSubAddon?.pricing && targetSubAddon.pricing[value]) {
359359
const option = targetSubAddon.pricing[value];
360360
const pricePerUser = isYearly ? option.yearlyPerUser : option.monthlyPerUser;
@@ -406,12 +406,12 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
406406
} else {
407407
targetSubAddon = selectedAddon?.subAddOns?.find(sub => sub.id === "academy-theory");
408408
}
409-
409+
410410
return targetSubAddon?.pricing?.map((option, index) => ({
411411
value: index,
412412
label: (
413413
<Box sx={{ textAlign: "center", fontSize: "1.25rem" }}>
414-
414+
415415
<Box>{option.learners === "2500+" ? "2,500+" : option.learners}</Box>
416416
<Box sx={{ color: "primary.main", mb: 1.5, fontSize: ".9rem" }}>
417417
{option.currency}{isYearly ? option.yearlyPerUser : option.monthlyPerUser}/{targetSubAddon.unitLabelSingular}/{isYearly ? "year" : "month"}

0 commit comments

Comments
 (0)