1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 03:03:26 +00:00

feat(pricing): discount quantity story

This commit is contained in:
Stephon Brown
2026-01-28 11:54:52 -05:00
parent 553759f38c
commit 2c00891f1f

View File

@@ -57,6 +57,8 @@ export default {
return "Your next charge is for";
case "dueOn":
return "due on";
case "premiumMembershipDiscount":
return "Premium membership discount";
default:
return key;
}
@@ -342,6 +344,35 @@ export const WithAmountDiscount: Story = {
},
};
export const WithQuantityDiscount: Story = {
args: {
cart: {
passwordManager: {
seats: {
quantity: 5,
translationKey: "members",
cost: 50.0,
hideBreakdown: true,
},
additionalStorage: {
quantity: 2,
translationKey: "additionalStorageGB",
cost: 10.0,
hideBreakdown: true,
},
},
cadence: "monthly",
discount: {
type: DiscountTypes.AmountOff,
value: 3.0,
quantity: 1,
translationKey: "premiumMembershipDiscount",
},
estimatedTax: 10.8,
} satisfies Cart,
},
};
export const WithHiddenBreakdown: Story = {
name: "Hidden Cost Breakdown",
args: {