mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
* The discount badge implementation * Use existing flag * Added the top spaces as requested * refactor: move discount-badge to pricing library and consolidate discount classes * fix: add CommonModule import to discount-badge component and simplify discounted amount calculation - Add CommonModule import to discount-badge component for *ngIf directive - Simplify discountedSubscriptionAmount to use upcomingInvoice.amount from server instead of manual calculation * Fix the lint errors * Story update --------- Co-authored-by: Alex Morask <amorask@bitwarden.com>
60 lines
2.3 KiB
TypeScript
60 lines
2.3 KiB
TypeScript
import { NgModule } from "@angular/core";
|
|
|
|
import { BannerModule } from "@bitwarden/components";
|
|
import { DiscountBadgeComponent } from "@bitwarden/pricing";
|
|
import {
|
|
EnterBillingAddressComponent,
|
|
EnterPaymentMethodComponent,
|
|
} from "@bitwarden/web-vault/app/billing/payment/components";
|
|
|
|
import { HeaderModule } from "../../layouts/header/header.module";
|
|
import { SharedModule } from "../../shared";
|
|
|
|
import { AdjustStorageDialogComponent } from "./adjust-storage-dialog/adjust-storage-dialog.component";
|
|
import { BillingHistoryComponent } from "./billing-history.component";
|
|
import { OffboardingSurveyComponent } from "./offboarding-survey.component";
|
|
import { PlanCardComponent } from "./plan-card/plan-card.component";
|
|
import { PricingSummaryComponent } from "./pricing-summary/pricing-summary.component";
|
|
import { IndividualSelfHostingLicenseUploaderComponent } from "./self-hosting-license-uploader/individual-self-hosting-license-uploader.component";
|
|
import { OrganizationSelfHostingLicenseUploaderComponent } from "./self-hosting-license-uploader/organization-self-hosting-license-uploader.component";
|
|
import { SecretsManagerSubscribeComponent } from "./sm-subscribe.component";
|
|
import { TrialPaymentDialogComponent } from "./trial-payment-dialog/trial-payment-dialog.component";
|
|
import { UpdateLicenseDialogComponent } from "./update-license-dialog.component";
|
|
import { UpdateLicenseComponent } from "./update-license.component";
|
|
|
|
@NgModule({
|
|
imports: [
|
|
SharedModule,
|
|
HeaderModule,
|
|
BannerModule,
|
|
EnterPaymentMethodComponent,
|
|
EnterBillingAddressComponent,
|
|
DiscountBadgeComponent,
|
|
],
|
|
declarations: [
|
|
BillingHistoryComponent,
|
|
SecretsManagerSubscribeComponent,
|
|
UpdateLicenseComponent,
|
|
UpdateLicenseDialogComponent,
|
|
OffboardingSurveyComponent,
|
|
AdjustStorageDialogComponent,
|
|
IndividualSelfHostingLicenseUploaderComponent,
|
|
OrganizationSelfHostingLicenseUploaderComponent,
|
|
TrialPaymentDialogComponent,
|
|
PlanCardComponent,
|
|
PricingSummaryComponent,
|
|
],
|
|
exports: [
|
|
SharedModule,
|
|
BillingHistoryComponent,
|
|
SecretsManagerSubscribeComponent,
|
|
UpdateLicenseComponent,
|
|
UpdateLicenseDialogComponent,
|
|
OffboardingSurveyComponent,
|
|
IndividualSelfHostingLicenseUploaderComponent,
|
|
OrganizationSelfHostingLicenseUploaderComponent,
|
|
DiscountBadgeComponent,
|
|
],
|
|
})
|
|
export class BillingSharedModule {}
|