From 6efe097b0a381fbed97ae2a1046b184c8eac0f92 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 10 Feb 2026 11:40:22 +0700 Subject: [PATCH] feat(lib): change accounts to use input function --- libs/ui/src/lib/accounts-table/accounts-table.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ui/src/lib/accounts-table/accounts-table.component.ts b/libs/ui/src/lib/accounts-table/accounts-table.component.ts index d4721b825..fc9a411bb 100644 --- a/libs/ui/src/lib/accounts-table/accounts-table.component.ts +++ b/libs/ui/src/lib/accounts-table/accounts-table.component.ts @@ -57,7 +57,6 @@ import { Subject, Subscription } from 'rxjs'; templateUrl: './accounts-table.component.html' }) export class GfAccountsTableComponent implements OnChanges, OnDestroy { - @Input() accounts: Account[]; @Input() activitiesCount: number; @Input() baseCurrency: string; @Input() deviceType: string; @@ -77,6 +76,7 @@ export class GfAccountsTableComponent implements OnChanges, OnDestroy { public isLoading = true; public routeQueryParams: Subscription; + public readonly accounts = input.required(); public readonly showActions = input(); public readonly showActivitiesCount = input(true); public readonly showAllocationInPercentage = input(); @@ -137,12 +137,12 @@ export class GfAccountsTableComponent implements OnChanges, OnDestroy { public ngOnChanges() { this.isLoading = true; - this.dataSource = new MatTableDataSource(this.accounts); + this.dataSource = new MatTableDataSource(this.accounts()); this.dataSource.sortingDataAccessor = getLowercase; this.dataSource.sort = this.sort; - if (this.accounts) { + if (this.accounts()) { this.isLoading = false; } }