mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[CL-707] Migrate CL codebase to signals (#15340)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component, Input } from "@angular/core";
|
||||
import { Component, input } from "@angular/core";
|
||||
|
||||
@Component({
|
||||
selector: "bit-section",
|
||||
@@ -9,7 +9,7 @@ import { Component, Input } from "@angular/core";
|
||||
<section
|
||||
[ngClass]="{
|
||||
'tw-mb-5 bit-compact:tw-mb-4 [&:not(bit-dialog_*):not(popup-page_*)]:md:tw-mb-12':
|
||||
!disableMargin,
|
||||
!disableMargin(),
|
||||
}"
|
||||
>
|
||||
<ng-content></ng-content>
|
||||
@@ -17,5 +17,5 @@ import { Component, Input } from "@angular/core";
|
||||
`,
|
||||
})
|
||||
export class SectionComponent {
|
||||
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
|
||||
readonly disableMargin = input(false, { transform: coerceBooleanProperty });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user