mirror of
https://github.com/bitwarden/browser
synced 2026-02-13 15:03:26 +00:00
fix strict inputs
This commit is contained in:
@@ -104,7 +104,7 @@ export class BadgeComponent implements FocusableElement {
|
||||
/**
|
||||
* Optional override for the automatic badge title when truncating.
|
||||
*/
|
||||
readonly title = input<string>(undefined);
|
||||
readonly title = input<string>();
|
||||
|
||||
/**
|
||||
* Variant, sets the background color of the badge.
|
||||
|
||||
@@ -42,7 +42,7 @@ export class CopyClickDirective {
|
||||
* When set, the toast displayed will show `<valueLabel> copied`
|
||||
* instead of the default messaging.
|
||||
*/
|
||||
readonly valueLabel = input<string>(undefined);
|
||||
readonly valueLabel = input<string>();
|
||||
|
||||
/**
|
||||
* When set without a value, a success toast will be shown when the value is copied
|
||||
|
||||
@@ -30,7 +30,7 @@ export class ProgressComponent {
|
||||
readonly bgColor = input<BackgroundType>("primary");
|
||||
readonly showText = input(true);
|
||||
readonly size = input<ProgressSizeType>("default");
|
||||
readonly text = input<string>(undefined);
|
||||
readonly text = input<string>();
|
||||
|
||||
get displayText() {
|
||||
return this.showText() && this.size() !== "small";
|
||||
|
||||
Reference in New Issue
Block a user