Skip to content

Commit

Permalink
feat(daffio): add sidebar registrations (#3026)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Aug 22, 2024
1 parent 35eda07 commit 7c34f2d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/daffio/src/app/core/nav/sidebar.provider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DaffSidebarRegistration } from '@daffodil/design/sidebar';

import { DaffioNavLinksSidebarBodyComponent } from './sidebar-body/component';
import { DaffioSidebarFooterComponent } from '../sidebar/components/sidebar-footer/sidebar-footer.component';
import { DaffioSidebarHeaderComponent } from '../sidebar/components/sidebar-header/sidebar-header.component';

export const DAFFIO_NAV_LINKS_SIDEBAR_ID = 'daffioNavLinks';

export const DAFF_NAV_LINKS_SIDEBAR_REGISTRATION: DaffSidebarRegistration = {
id: DAFFIO_NAV_LINKS_SIDEBAR_ID,
header: DaffioSidebarHeaderComponent,
body: DaffioNavLinksSidebarBodyComponent,
footer: DaffioSidebarFooterComponent,
};
12 changes: 12 additions & 0 deletions apps/daffio/src/app/docs/containers/docs-list/sidebar.provider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { DaffioDocsListContainer } from './docs-list.component';
import { DaffioSidebarFooterComponent } from '../../../core/sidebar/components/sidebar-footer/sidebar-footer.component';
import { DaffioSidebarHeaderComponent } from '../../../core/sidebar/components/sidebar-header/sidebar-header.component';

export const DAFFIO_DOCS_LIST_SIDEBAR_ID = 'daffioDocsList';

export const DAFFIO_DOCS_LIST_SIDEBAR_REGISTRATION = {
id: DAFFIO_DOCS_LIST_SIDEBAR_ID,
header: DaffioSidebarHeaderComponent,
body: DaffioDocsListContainer,
footer: DaffioSidebarFooterComponent,
};

0 comments on commit 7c34f2d

Please sign in to comment.