1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +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", title: "Component Library/Async Actions/In Forms",
decorators: [ decorators: [
moduleMetadata({ moduleMetadata({
declarations: [ declarations: [PromiseExampleComponent, ObservableExampleComponent],
imports: [
BitSubmitDirective, BitSubmitDirective,
BitFormButtonDirective, BitFormButtonDirective,
PromiseExampleComponent,
ObservableExampleComponent,
BitActionDirective,
],
imports: [
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
FormFieldModule, FormFieldModule,
InputModule, InputModule,
ButtonModule, ButtonModule,
IconButtonModule, IconButtonModule,
BitActionDirective,
], ],
providers: [ providers: [
{ {

View File

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

View File

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

View File

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

View File

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

View File

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