@@ -177,7 +177,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
177177 const enterpriseUserSeats = enterpriseUsers > 0 ? ` and ${ enterpriseUsers } enterprise user${ enterpriseUsers > 1 ? "s" : "" } ` : "" ;
178178 return {
179179 link : matchingPlanLink . link ,
180- name : `Subscribe ( ${ currentLearnerCount } learners ${ targetSubAddonName ? " " + targetSubAddonName : "" } ${ enterpriseUserSeats } ) `
180+ name : `Subscribe For Add-on `
181181 } ;
182182 }
183183
@@ -191,7 +191,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
191191
192192 return {
193193 link : "#" ,
194- name : `Subscribe to ${ selectedAddon . name } `
194+ name : `Subscribe For Add-on `
195195 } ;
196196 } ;
197197
@@ -361,7 +361,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
361361 const option = targetSubAddon . pricing [ value ] ;
362362 const pricePerUser = isYearly ? option . yearlyPerUser : option . monthlyPerUser ;
363363 const totalPrice = pricePerUser * option . learners ;
364- const period = isYearly ? "/month " : "/month" ;
364+ const period = isYearly ? "/year " : "/month" ;
365365 return `${ option . learners } learners - ${ formatPrice ( totalPrice ) } ${ period } ` ;
366366 }
367367 return "" ;
@@ -409,7 +409,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
409409 } ) ( ) }
410410 />
411411 < Box sx = { boxStyles . disclaimerSection } >
412- < Typography variant = "body2" sx = { typographyStyles . italic } >
412+ < Typography variant = "body2" sx = { typographyStyles . italic } >
413413 Looking for a plan larger than 2,500 learners? Great! < a href = "/company/contact" > Let us know</ a > .
414414 </ Typography >
415415 </ Box >
@@ -420,39 +420,48 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
420420 { selectedAddon !== null && selectedAddon . id !== "academy" && (
421421 < >
422422 < Box sx = { boxStyles . unitQuantitySection } >
423- < Typography variant = "h6" fontWeight = "600" sx = { boxStyles . unitQuantityTitle } >
423+ < Typography variant = "h6" sx = { boxStyles . unitQuantityTitle } >
424424 { selectedAddon . pricing ?. [ quantityIndex ] ?. units || 0 } { selectedAddon ?. unitLabel }
425425 </ Typography >
426426 < Slider
427- value = { quantityIndex }
428- onChange = { ( event , newValue ) => setQuantityIndex ( newValue ) }
429- min = { 0 }
430- max = { selectedAddon ?. pricing ?. length - 1 || 0 }
431- step = { null }
432- valueLabelDisplay = "auto"
433- valueLabelFormat = { ( value ) => {
434- if ( selectedAddon ?. pricing && selectedAddon . pricing [ value ] ) {
435- const option = selectedAddon . pricing [ value ] ;
436- const unitPrice = isYearly ? option . yearlyPerUnit : option . monthlyPerUnit ;
437- const totalPrice = unitPrice * option . units ;
438- const period = isYearly ? "/year" : "/month" ;
439- return `${ option . units } ${ selectedAddon ?. unitLabel ?. slice ( 0 , - 1 ) || "unit" } - ${ formatPrice ( totalPrice ) } ${ period } ` ;
440- }
441- return "" ;
442- } }
443- sx = { getSliderStyle ( sliderStyles . baseOther , "14px" ) }
444- marks = { selectedAddon ?. pricing ?. map ( ( option , index ) => ( {
445- value : index ,
446- label : (
447- < Box sx = { boxStyles . sliderMarks } >
448- < Box > { option . units } </ Box >
449- < Box sx = { boxStyles . sliderPriceText } >
450- { formatPrice ( isYearly ? option . yearlyPerUnit * option . units : option . monthlyPerUnit * option . units ) }
427+ value = { quantityIndex }
428+ onChange = { ( event , newValue ) => setQuantityIndex ( newValue ) }
429+ min = { 0 }
430+ valueLabelDisplay = "auto"
431+ valueLabelFormat = { ( value ) => {
432+ const option = selectedAddon ?. pricing ?. [ value ] ;
433+ if ( option ) {
434+ const pricePerUnit = isYearly ? option . yearlyPerUnit : option . monthlyPerUnit ;
435+ const totalPrice = pricePerUnit * option . units ;
436+ const period = isYearly ? "/year" : "/month" ;
437+ return `${ option . units } ${ selectedAddon . unitLabel ?. slice ( 0 , - 1 ) || "unit" } - ${ formatPrice ( totalPrice ) } ${ period } ` ;
438+ }
439+ return "" ;
440+ } }
441+ max = { ( selectedAddon ?. pricing ?. length - 1 ) || 0 }
442+ step = { null }
443+ sx = { getSliderStyle ( sliderStyles . baseOther , "1rem" ) } // ← use same style as academy
444+ marks = { selectedAddon ?. pricing ?. map ( ( option , index ) => ( {
445+ value : index ,
446+ label : (
447+ < Box sx = { { textAlign : "center" , fontSize : "1.25rem" , fontWeight : "bold" } } >
448+ < Box > { option . units } </ Box >
449+ < Box
450+ sx = { {
451+ color : "text.secondary" ,
452+ mb : 1.5 ,
453+ fontSize : {
454+ xs : "0.75rem" ,
455+ sm : "0.9rem" ,
456+ }
457+ } } >
458+ { formatPrice ( isYearly ? option . yearlyPerUnit : option . monthlyPerUnit ) } < br /> { selectedAddon . unitLabel ?. slice ( 0 , - 1 ) || "unit" } /{ isYearly ? "year" : "month" }
459+ </ Box >
451460 </ Box >
452- </ Box >
453- ) ,
454- } ) ) || [ ] }
455- />
461+ )
462+ } ) ) }
463+ />
464+
456465 </ Box >
457466 </ >
458467 ) }
@@ -468,7 +477,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
468477 >
469478 < Box sx = { { ...boxStyles . flexBetween , ...boxStyles . pricingHeader } } >
470479 < Typography variant = "h6" sx = { typographyStyles . subheading } gutterBottom >
471- Add-on × Quantity per Subscription Duration
480+ Add-on × Quantity / per Subscription Duration
472481 </ Typography >
473482 < Typography variant = "h6" sx = { typographyStyles . subheading } gutterBottom >
474483 SUBTOTAL
@@ -543,9 +552,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
543552 { formatPrice ( ( isYearly ? enterprisePlan . yearlyprice : enterprisePlan . monthlyprice ) * ( enterpriseUsers > 0 ? enterpriseUsers : 1 ) ) } /{ isYearly ? "monthly" : "yearly" }
544553 </ Typography >
545554 </ Box >
546- < Typography variant = "h6" sx = { typographyStyles . subheading } gutterBottom >
547- TOTAL
548- </ Typography >
555+
549556 < Box sx = { boxStyles . flexBetween } >
550557 < Typography variant = "body1" gutterBottom sx = { typographyStyles . subheading } >
551558 { isYearly ? "Yearly" : "Monthly" } Cost
0 commit comments