mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53: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,3 +1,4 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component, Input } from "@angular/core";
|
||||
|
||||
type SizeTypes = "small" | "default" | "large";
|
||||
@@ -19,6 +20,8 @@ const BackgroundClasses: Record<BackgroundTypes, string[]> = {
|
||||
@Component({
|
||||
selector: "bit-progress",
|
||||
templateUrl: "./progress.component.html",
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class ProgressComponent {
|
||||
@Input() barWidth = 0;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { ProgressComponent } from "./progress.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
imports: [ProgressComponent],
|
||||
exports: [ProgressComponent],
|
||||
declarations: [ProgressComponent],
|
||||
})
|
||||
export class ProgressModule {}
|
||||
|
||||
Reference in New Issue
Block a user