1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

Fix imports for standalone component stories (#12464)

This commit is contained in:
Victoria League 2024-12-18 14:25:03 -05:00 committed by GitHub
parent 2bb807c5ce
commit 6eb30c98c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 17 deletions

View File

@ -109,20 +109,17 @@ export default {
title: "Component Library/Async Actions/In Forms",
decorators: [
moduleMetadata({
declarations: [
declarations: [PromiseExampleComponent, ObservableExampleComponent],
imports: [
BitSubmitDirective,
BitFormButtonDirective,
PromiseExampleComponent,
ObservableExampleComponent,
BitActionDirective,
],
imports: [
FormsModule,
ReactiveFormsModule,
FormFieldModule,
InputModule,
ButtonModule,
IconButtonModule,
BitActionDirective,
],
providers: [
{

View File

@ -56,12 +56,11 @@ export default {
decorators: [
moduleMetadata({
declarations: [
BitActionDirective,
PromiseExampleComponent,
ObservableExampleComponent,
RejectedPromiseExampleComponent,
],
imports: [ButtonModule, IconButtonModule],
imports: [ButtonModule, IconButtonModule, BitActionDirective],
providers: [
{
provide: ValidationService,

View File

@ -8,8 +8,7 @@ export default {
component: BadgeDirective,
decorators: [
moduleMetadata({
imports: [CommonModule],
declarations: [BadgeDirective],
imports: [CommonModule, BadgeDirective],
}),
],
args: {

View File

@ -25,8 +25,7 @@ export default {
component: BreadcrumbsComponent,
decorators: [
moduleMetadata({
declarations: [BreadcrumbComponent],
imports: [LinkModule, MenuModule, IconButtonModule, RouterModule],
imports: [LinkModule, MenuModule, IconButtonModule, RouterModule, BreadcrumbComponent],
}),
applicationConfig({
providers: [

View File

@ -64,13 +64,16 @@ export default {
component: StoryDialogComponent,
decorators: [
moduleMetadata({
declarations: [
declarations: [StoryDialogContentComponent],
imports: [
SharedModule,
ButtonModule,
DialogModule,
IconButtonModule,
DialogCloseDirective,
DialogComponent,
DialogTitleContainerDirective,
StoryDialogContentComponent,
],
imports: [SharedModule, ButtonModule, DialogModule, IconButtonModule],
providers: [
DialogService,
{

View File

@ -13,8 +13,7 @@ export default {
},
decorators: [
moduleMetadata({
declarations: [ToggleGroupComponent, ToggleComponent],
imports: [BadgeModule],
imports: [BadgeModule, ToggleGroupComponent, ToggleComponent],
}),
],
parameters: {