mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +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,6 +1,7 @@
|
||||
import { Component, Input } from "@angular/core";
|
||||
|
||||
import { Icons } from "..";
|
||||
import { BitIconComponent } from "../icon/icon.component";
|
||||
|
||||
/**
|
||||
* Component for displaying a message when there are no items to display. Expects title, description and button slots.
|
||||
@@ -8,6 +9,8 @@ import { Icons } from "..";
|
||||
@Component({
|
||||
selector: "bit-no-items",
|
||||
templateUrl: "./no-items.component.html",
|
||||
standalone: true,
|
||||
imports: [BitIconComponent],
|
||||
})
|
||||
export class NoItemsComponent {
|
||||
@Input() icon = Icons.Search;
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { IconModule } from "../icon";
|
||||
|
||||
import { NoItemsComponent } from "./no-items.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, IconModule],
|
||||
imports: [NoItemsComponent],
|
||||
exports: [NoItemsComponent],
|
||||
declarations: [NoItemsComponent],
|
||||
})
|
||||
export class NoItemsModule {}
|
||||
|
||||
Reference in New Issue
Block a user