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:
@@ -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(
|
||||
|
||||
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user