Skip to content

Commit 430d8f4

Browse files
committed
comparative price between monthly and annual duration per learner
Signed-off-by: Namanv509 <namanverma00260@gmail.com>
1 parent ad55c9f commit 430d8f4

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,19 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
399399
sm: "0.9rem",
400400
}
401401
}}>
402-
{formatSliderPrice(isYearly ? option.yearlyPerUser : option.monthlyPerUser, currency)}<br />{targetSubAddon.unitLabelSingular}/{isYearly ? "year" : "month"}
402+
{formatSliderPrice(isYearly ? option.yearlyPerUser : option.monthlyPerUser, currency)}/{targetSubAddon.unitLabelSingular}/{isYearly ? "year" : "month"}
403+
{isYearly && (
404+
<Box
405+
sx={{
406+
fontSize: {
407+
xs: "0.7rem",
408+
sm: "0.7rem",
409+
}
410+
}}
411+
>
412+
{formatSliderPrice(option.yearlyPerUser / 12, currency)}/{targetSubAddon.unitLabelSingular}/month
413+
</Box>
414+
)}
403415
</Box>
404416
</Box>
405417
),

0 commit comments

Comments
 (0)