mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[CL-135] Migrate component library to standalone components (#12389)
* Migrate component library to standalone components * Fix tests
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { PortalModule } from "@angular/cdk/portal";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router";
|
||||
|
||||
import { TabHeaderComponent } from "./shared/tab-header.component";
|
||||
import { TabListContainerDirective } from "./shared/tab-list-container.directive";
|
||||
import { TabListItemDirective } from "./shared/tab-list-item.directive";
|
||||
import { TabBodyComponent } from "./tab-group/tab-body.component";
|
||||
import { TabGroupComponent } from "./tab-group/tab-group.component";
|
||||
import { TabLabelDirective } from "./tab-group/tab-label.directive";
|
||||
@@ -14,7 +9,15 @@ import { TabLinkComponent } from "./tab-nav-bar/tab-link.component";
|
||||
import { TabNavBarComponent } from "./tab-nav-bar/tab-nav-bar.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule, PortalModule],
|
||||
imports: [
|
||||
CommonModule,
|
||||
TabGroupComponent,
|
||||
TabComponent,
|
||||
TabLabelDirective,
|
||||
TabNavBarComponent,
|
||||
TabLinkComponent,
|
||||
TabBodyComponent,
|
||||
],
|
||||
exports: [
|
||||
TabGroupComponent,
|
||||
TabComponent,
|
||||
@@ -22,16 +25,5 @@ import { TabNavBarComponent } from "./tab-nav-bar/tab-nav-bar.component";
|
||||
TabNavBarComponent,
|
||||
TabLinkComponent,
|
||||
],
|
||||
declarations: [
|
||||
TabGroupComponent,
|
||||
TabComponent,
|
||||
TabLabelDirective,
|
||||
TabListContainerDirective,
|
||||
TabListItemDirective,
|
||||
TabHeaderComponent,
|
||||
TabNavBarComponent,
|
||||
TabLinkComponent,
|
||||
TabBodyComponent,
|
||||
],
|
||||
})
|
||||
export class TabsModule {}
|
||||
|
||||
Reference in New Issue
Block a user