Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/widen input types in value component (#8032)
Kenrick Tandrian5aec4a8a163e
diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.tsindex 4101b4066f..dfbe461f60 100644--- a/libs/ui/src/lib/value/value.component.ts+++ b/libs/ui/src/lib/value/value.component.ts@@ -47,7 +47,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy {@Input() size: 'large' | 'medium' | 'small' = 'small';@Input() subLabel?: string = '';@Input() unit?: string | null = '';- @Input() value?: number | string | null = '';+ @Input() value?: Date | number | string | null = '';@ViewChild('labelContent', { static: false })labelContent!: ElementRef<HTMLSpanElement>;@@ -171,7 +171,7 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy {});} else {- this.formattedValue = this.value;+ this.formattedValue = String(this.value);}}}