From 2b92c7dd10451a1b0f7f07c5fef84d8d3ba17ad5 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Mon, 18 Mar 2024 10:17:07 -0700 Subject: [PATCH] Include BillingAccountProfileStateService dependency in storybook module (#8376) --- .../web/src/app/vault/components/premium-badge.stories.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/src/app/vault/components/premium-badge.stories.ts b/apps/web/src/app/vault/components/premium-badge.stories.ts index ffe11d7386..5433dd9981 100644 --- a/apps/web/src/app/vault/components/premium-badge.stories.ts +++ b/apps/web/src/app/vault/components/premium-badge.stories.ts @@ -1,6 +1,8 @@ import { Meta, moduleMetadata, Story } from "@storybook/angular"; +import { of } from "rxjs"; import { JslibModule } from "@bitwarden/angular/jslib.module"; +import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service"; import { BadgeModule, I18nMockService } from "@bitwarden/components"; @@ -34,6 +36,12 @@ export default { return new MockMessagingService(); }, }, + { + provide: BillingAccountProfileStateService, + useValue: { + hasPremiumFromAnySource$: of(false), + }, + }, ], }), ],