Skip to content

Commit

Permalink
refactor(daffio): fix dynamic content provider naming (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Jan 12, 2025
1 parent 676e498 commit 28fd473
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/daffio/src/app/docs/api/api.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DaffArticleModule } from '@daffodil/design/article';
import { DaffContainerModule } from '@daffodil/design/container';

import { DaffioDocsApiRoutingModule } from './api-routing.module';
import { daffioDocsApiContentComponentProvider } from './components/api-content/api-content.provider';
import { provideDaffioDocsApiContentComponent } from './components/api-content/api-content.provider';
import { DaffioApiListModule } from './components/api-list/api-list.module';
import { DaffioApiListPageComponent } from './pages/api-list-page/api-list-page.component';

Expand All @@ -25,7 +25,7 @@ import { DaffioApiListPageComponent } from './pages/api-list-page/api-list-page.
DaffioApiListPageComponent,
],
providers: [
daffioDocsApiContentComponentProvider(),
provideDaffioDocsApiContentComponent(),
],
})
export class DaffioApiModule {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaffioDocsApiContentComponent } from './api-content.component';
import { provideDaffioDocsDynamicContentComponents } from '../../../dynamic-content/dynamic-content-components.token';

export const daffioDocsApiContentComponentProvider = () => provideDaffioDocsDynamicContentComponents(DaffioDocsApiContentComponent);
export const provideDaffioDocsApiContentComponent = () => provideDaffioDocsDynamicContentComponents(DaffioDocsApiContentComponent);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaffioDocsGuidesContentComponent } from './guides-content.component';
import { provideDaffioDocsDynamicContentComponents } from '../../../dynamic-content/dynamic-content-components.token';

export const daffioDocsGuidesContentComponentProvider = () => provideDaffioDocsDynamicContentComponents(DaffioDocsGuidesContentComponent);
export const provideDaffioDocsGuidesContentComponent = () => provideDaffioDocsDynamicContentComponents(DaffioDocsGuidesContentComponent);
4 changes: 2 additions & 2 deletions apps/daffio/src/app/docs/guides/guides.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { NgModule } from '@angular/core';

import { daffioDocsGuidesContentComponentProvider } from './components/guides-content/guides-content.provider';
import { provideDaffioDocsGuidesContentComponent } from './components/guides-content/guides-content.provider';
import { DaffioGuidesRoutingModule } from './guides-routing.module';

@NgModule({
imports: [
DaffioGuidesRoutingModule,
],
providers: [
daffioDocsGuidesContentComponentProvider(),
provideDaffioDocsGuidesContentComponent(),
],
})
export class DaffioGuidesModule {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DaffioDocsPackagesContentComponent } from './packages-content.component';
import { provideDaffioDocsDynamicContentComponents } from '../../../dynamic-content/dynamic-content-components.token';

export const daffioDocsPackagesContentComponentProvider = () => provideDaffioDocsDynamicContentComponents(DaffioDocsPackagesContentComponent);
export const provideDaffioDocsPackagesContentComponent = () => provideDaffioDocsDynamicContentComponents(DaffioDocsPackagesContentComponent);
4 changes: 2 additions & 2 deletions apps/daffio/src/app/docs/packages/packages.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { RouterModule } from '@angular/router';
import { DaffContainerModule } from '@daffodil/design/container';
import { DaffHeroModule } from '@daffodil/design/hero';

import { daffioDocsPackagesContentComponentProvider } from './components/packages-content/packages-content.provider';
import { provideDaffioDocsPackagesContentComponent } from './components/packages-content/packages-content.provider';
import { DaffioDocsPackageCardsContainerModule } from './containers/package-cards/package-cards.module';
import { DaffioPackagesRoutingModule } from './packages-routing.module';
import { DaffioPackagesOverviewPageComponent } from './pages/packages-overview/packages-overview.component';
Expand All @@ -27,7 +27,7 @@ import { DaffioPackagesOverviewPageComponent } from './pages/packages-overview/p
DaffioPackagesOverviewPageComponent,
],
providers: [
daffioDocsPackagesContentComponentProvider(),
provideDaffioDocsPackagesContentComponent(),
],
})
export class DaffioPackagesModule {}

0 comments on commit 28fd473

Please sign in to comment.