1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

refactor(billing): Clean up subscription details and type definitions

This commit is contained in:
Stephon Brown
2026-02-03 17:27:19 -05:00
parent b499c48633
commit bb28d05a3a
2 changed files with 9 additions and 10 deletions

View File

@@ -86,15 +86,10 @@ export class PremiumOrgUpgradeComponent implements OnInit {
}),
takeUntilDestroyed(this.destroyRef),
)
.subscribe(
([personalPlans, businessPlans]: [
PersonalSubscriptionPricingTier[],
BusinessSubscriptionPricingTier[],
]) => {
this.setupCardDetails(personalPlans, businessPlans);
this.loading.set(false);
},
);
.subscribe(([personalPlans, businessPlans]) => {
this.setupCardDetails(personalPlans, businessPlans);
this.loading.set(false);
});
}
private setupCardDetails(

View File

@@ -8,6 +8,10 @@ export type SubscriptionPricingCardDetails = {
cadence: "month" | "monthly" | "year" | "annually";
showPerUser?: boolean;
};
button: { text: string; type: ButtonType; icon?: { type: BitwardenIcon; position: "before" | "after" } };
button: {
text: string;
type: ButtonType;
icon?: { type: BitwardenIcon; position: "before" | "after" };
};
features: string[];
};