Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/rename asset profile icon component to entity logo component (#4861)

Thomas Kaulfa99876dcae8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fad387eeef..c2a3dca8a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
-- Moved the asset profile icon component to `@ghostfolio/ui`
+- Renamed the asset profile icon component to entity logo component and moved to `@ghostfolio/ui`
- Renamed `Account` to `accounts` in the `User` database schema
### Fixed
diff --git a/apps/client/src/app/components/accounts-table/accounts-table.component.html b/apps/client/src/app/components/accounts-table/accounts-table.component.html
index ecb51fc29c..41ae74bec7 100644
--- a/apps/client/src/app/components/accounts-table/accounts-table.component.html
+++ b/apps/client/src/app/components/accounts-table/accounts-table.component.html
@@ -44,10 +44,10 @@
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
@if (element.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="d-inline d-sm-none mr-1"
[tooltip]="element.Platform?.name"
- [url]="element.Platform?.url"
+ [url]="element.Platform.url"
/>
}
<span>{{ element.name }}</span>
@@ -92,10 +92,10 @@
>
<div class="d-flex">
@if (element.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="element.Platform?.name"
- [url]="element.Platform?.url"
+ [url]="element.Platform.url"
/>
}
<span>{{ element.Platform?.name }}</span>
diff --git a/apps/client/src/app/components/accounts-table/accounts-table.module.ts b/apps/client/src/app/components/accounts-table/accounts-table.module.ts
index da233984be..d7c6bf9feb 100644
--- a/apps/client/src/app/components/accounts-table/accounts-table.module.ts
+++ b/apps/client/src/app/components/accounts-table/accounts-table.module.ts
@@ -1,4 +1,4 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common';
@@ -17,7 +17,7 @@ import { AccountsTableComponent } from './accounts-table.component';
exports: [AccountsTableComponent],
imports: [
CommonModule,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
GfValueComponent,
MatButtonModule,
MatMenuModule,
diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
index f10b6dc023..4c7d39fc05 100644
--- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
+++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
@@ -507,7 +507,7 @@
<mat-label i18n>Url</mat-label>
<input formControlName="url" matInput type="text" />
@if (assetProfileForm.get('url').value) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-3"
matSuffix
[url]="assetProfileForm.get('url').value"
diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts
index 03bd7fcbcc..78c4de0bf0 100644
--- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts
+++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.module.ts
@@ -1,6 +1,6 @@
import { AdminMarketDataService } from '@ghostfolio/client/components/admin-market-data/admin-market-data.service';
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfHistoricalMarketDataEditorComponent } from '@ghostfolio/ui/historical-market-data-editor';
import { GfLineChartComponent } from '@ghostfolio/ui/line-chart';
import { GfPortfolioProportionChartComponent } from '@ghostfolio/ui/portfolio-proportion-chart';
@@ -27,8 +27,8 @@ import { AssetProfileDialog } from './asset-profile-dialog.component';
imports: [
CommonModule,
FormsModule,
- GfAssetProfileIconComponent,
GfCurrencySelectorComponent,
+ GfEntityLogoComponent,
GfHistoricalMarketDataEditorComponent,
GfLineChartComponent,
GfPortfolioProportionChartComponent,
diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.html b/apps/client/src/app/components/admin-platform/admin-platform.component.html
index 47fee3c8a2..9e38d5de7c 100644
--- a/apps/client/src/app/components/admin-platform/admin-platform.component.html
+++ b/apps/client/src/app/components/admin-platform/admin-platform.component.html
@@ -23,7 +23,7 @@
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
@if (element.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="d-inline mr-1"
[tooltip]="element.name"
[url]="element.url"
diff --git a/apps/client/src/app/components/admin-platform/admin-platform.module.ts b/apps/client/src/app/components/admin-platform/admin-platform.module.ts
index a7d93f4256..beb3923f70 100644
--- a/apps/client/src/app/components/admin-platform/admin-platform.module.ts
+++ b/apps/client/src/app/components/admin-platform/admin-platform.module.ts
@@ -1,4 +1,4 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@@ -16,8 +16,8 @@ import { GfCreateOrUpdatePlatformDialogModule } from './create-or-update-platfor
exports: [AdminPlatformComponent],
imports: [
CommonModule,
- GfAssetProfileIconComponent,
GfCreateOrUpdatePlatformDialogModule,
+ GfEntityLogoComponent,
MatButtonModule,
MatMenuModule,
MatSortModule,
diff --git a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html
index bb99ae3a88..a7446c9734 100644
--- a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html
+++ b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html
@@ -29,11 +29,7 @@
(keydown.enter)="$event.stopPropagation()"
/>
@if (data.platform.url) {
- <gf-asset-profile-icon
- class="mr-3"
- matSuffix
- [url]="data.platform.url"
- />
+ <gf-entity-logo class="mr-3" matSuffix [url]="data.platform.url" />
}
</mat-form-field>
</div>
diff --git a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts
index d8b2bd1280..a6239566c3 100644
--- a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts
+++ b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.module.ts
@@ -1,4 +1,4 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
@@ -14,8 +14,8 @@ import { CreateOrUpdatePlatformDialog } from './create-or-update-platform-dialog
declarations: [CreateOrUpdatePlatformDialog],
imports: [
CommonModule,
- GfAssetProfileIconComponent,
FormsModule,
+ GfEntityLogoComponent,
MatButtonModule,
MatDialogModule,
MatFormFieldModule,
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.html b/apps/client/src/app/components/admin-settings/admin-settings.component.html
index 2d577d5826..41069fb101 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.html
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.html
@@ -9,7 +9,7 @@
</th>
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
<div class="d-flex align-items-center">
- <gf-asset-profile-icon class="mr-1" [url]="element.url" />
+ <gf-entity-logo class="mr-1" [url]="element.url" />
<div>
@if (isGhostfolioDataProvider(element)) {
<a
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.module.ts b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
index eee33461b0..0a798df117 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.module.ts
+++ b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
@@ -1,6 +1,6 @@
import { GfAdminPlatformModule } from '@ghostfolio/client/components/admin-platform/admin-platform.module';
import { GfAdminTagModule } from '@ghostfolio/client/components/admin-tag/admin-tag.module';
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
import { CommonModule } from '@angular/common';
@@ -20,7 +20,7 @@ import { AdminSettingsComponent } from './admin-settings.component';
CommonModule,
GfAdminPlatformModule,
GfAdminTagModule,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
GfPremiumIndicatorComponent,
MatButtonModule,
MatMenuModule,
diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
index af97bfce33..a38baa6ece 100644
--- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
+++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
@@ -61,7 +61,7 @@
) {
<mat-option [value]="platformEntry">
<span class="d-flex">
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="platformEntry.name"
[url]="platformEntry.url"
diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts
index ea2537854f..8543d37f48 100644
--- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts
+++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.module.ts
@@ -1,5 +1,5 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
@@ -18,8 +18,8 @@ import { CreateOrUpdateAccountDialog } from './create-or-update-account-dialog.c
imports: [
CommonModule,
FormsModule,
- GfAssetProfileIconComponent,
GfCurrencySelectorComponent,
+ GfEntityLogoComponent,
MatAutocompleteModule,
MatButtonModule,
MatCheckboxModule,
diff --git a/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html b/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
index 69734b8f9a..6ccf7c42a9 100644
--- a/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
+++ b/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.html
@@ -14,7 +14,7 @@
<mat-option [value]="account.id">
<div class="d-flex">
@if (account.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="account.Platform?.name"
[url]="account.Platform?.url"
@@ -35,7 +35,7 @@
<mat-option [value]="account.id">
<div class="d-flex">
@if (account.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="account.Platform?.name"
[url]="account.Platform?.url"
diff --git a/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts b/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts
index ac9ecf20e4..19bd98a7f6 100644
--- a/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts
+++ b/apps/client/src/app/pages/accounts/transfer-balance/transfer-balance-dialog.module.ts
@@ -1,4 +1,4 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
@@ -15,7 +15,7 @@ import { TransferBalanceDialog } from './transfer-balance-dialog.component';
declarations: [TransferBalanceDialog],
imports: [
CommonModule,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
MatButtonModule,
MatDialogModule,
MatFormFieldModule,
diff --git a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
index 985394a40c..a1ca6e3232 100644
--- a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
+++ b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
@@ -94,7 +94,7 @@
<mat-option [value]="account.id">
<div class="d-flex">
@if (account.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="account.Platform?.name"
[url]="account.Platform?.url"
diff --git a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts
index 0bdbfdf5cb..5f6fce28d0 100644
--- a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts
+++ b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.module.ts
@@ -1,4 +1,4 @@
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfSymbolAutocompleteComponent } from '@ghostfolio/ui/symbol-autocomplete';
import { GfTagsSelectorComponent } from '@ghostfolio/ui/tags-selector';
import { GfValueComponent } from '@ghostfolio/ui/value';
@@ -21,7 +21,7 @@ import { CreateOrUpdateActivityDialog } from './create-or-update-activity-dialog
imports: [
CommonModule,
FormsModule,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
GfSymbolAutocompleteComponent,
GfTagsSelectorComponent,
GfValueComponent,
diff --git a/libs/ui/src/lib/activities-table/activities-table.component.html b/libs/ui/src/lib/activities-table/activities-table.component.html
index 79a7d3417e..a0607789a4 100644
--- a/libs/ui/src/lib/activities-table/activities-table.component.html
+++ b/libs/ui/src/lib/activities-table/activities-table.component.html
@@ -124,7 +124,7 @@
<ng-container matColumnDef="icon" sticky>
<th *matHeaderCellDef class="px-1" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell>
- <gf-asset-profile-icon
+ <gf-entity-logo
[dataSource]="element.SymbolProfile?.dataSource"
[symbol]="element.SymbolProfile?.symbol"
[tooltip]="element.SymbolProfile?.name"
@@ -310,7 +310,7 @@
<td *matCellDef="let element" class="px-1" mat-cell>
<div class="d-flex">
@if (element.Account?.Platform?.url) {
- <gf-asset-profile-icon
+ <gf-entity-logo
class="mr-1"
[tooltip]="element.Account?.Platform?.name"
[url]="element.Account?.Platform?.url"
diff --git a/libs/ui/src/lib/activities-table/activities-table.component.ts b/libs/ui/src/lib/activities-table/activities-table.component.ts
index 0ed67ac3ec..a013081f4a 100644
--- a/libs/ui/src/lib/activities-table/activities-table.component.ts
+++ b/libs/ui/src/lib/activities-table/activities-table.component.ts
@@ -7,7 +7,7 @@ import { getDateFormatString, getLocale } from '@ghostfolio/common/helper';
import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces';
import { OrderWithAccount } from '@ghostfolio/common/types';
import { GfActivityTypeComponent } from '@ghostfolio/ui/activity-type';
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfNoTransactionsInfoComponent } from '@ghostfolio/ui/no-transactions-info';
import { GfValueComponent } from '@ghostfolio/ui/value';
@@ -52,7 +52,7 @@ import { Subject, Subscription, takeUntil } from 'rxjs';
imports: [
CommonModule,
GfActivityTypeComponent,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
GfNoTransactionsInfoComponent,
GfSymbolModule,
GfValueComponent,
diff --git a/libs/ui/src/lib/asset-profile-icon/index.ts b/libs/ui/src/lib/asset-profile-icon/index.ts
deleted file mode 100644
index 9f0cfb3e86..0000000000
--- a/libs/ui/src/lib/asset-profile-icon/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './asset-profile-icon.component';
diff --git a/libs/ui/src/lib/assistant/assistant.component.ts b/libs/ui/src/lib/assistant/assistant.component.ts
index 76529dc879..2aac45146e 100644
--- a/libs/ui/src/lib/assistant/assistant.component.ts
+++ b/libs/ui/src/lib/assistant/assistant.component.ts
@@ -4,7 +4,7 @@ import { DataService } from '@ghostfolio/client/services/data.service';
import { getAssetProfileIdentifier } from '@ghostfolio/common/helper';
import { Filter, PortfolioPosition, User } from '@ghostfolio/common/interfaces';
import { DateRange } from '@ghostfolio/common/types';
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { translate } from '@ghostfolio/ui/i18n';
import { FocusKeyManager } from '@angular/cdk/a11y';
@@ -61,8 +61,8 @@ import {
imports: [
CommonModule,
FormsModule,
- GfAssetProfileIconComponent,
GfAssistantListItemComponent,
+ GfEntityLogoComponent,
GfSymbolModule,
MatButtonModule,
MatFormFieldModule,
diff --git a/libs/ui/src/lib/assistant/assistant.html b/libs/ui/src/lib/assistant/assistant.html
index fa67385321..a0e19674a0 100644
--- a/libs/ui/src/lib/assistant/assistant.html
+++ b/libs/ui/src/lib/assistant/assistant.html
@@ -112,7 +112,7 @@
@for (account of accounts; track account.id) {
<mat-option [value]="account.id">
<div class="d-flex">
- <gf-asset-profile-icon
+ <gf-entity-logo
*ngIf="account.Platform?.url"
class="mr-1"
[tooltip]="account.Platform?.name"
diff --git a/libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.html b/libs/ui/src/lib/entity-logo/entity-logo.component.html
similarity index 100%
rename from libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.html
rename to libs/ui/src/lib/entity-logo/entity-logo.component.html
diff --git a/libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.scss b/libs/ui/src/lib/entity-logo/entity-logo.component.scss
similarity index 100%
rename from libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.scss
rename to libs/ui/src/lib/entity-logo/entity-logo.component.scss
diff --git a/libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.ts b/libs/ui/src/lib/entity-logo/entity-logo.component.ts
similarity index 76%
rename from libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.ts
rename to libs/ui/src/lib/entity-logo/entity-logo.component.ts
index 179193da0b..ee41c8da87 100644
--- a/libs/ui/src/lib/asset-profile-icon/asset-profile-icon.component.ts
+++ b/libs/ui/src/lib/entity-logo/entity-logo.component.ts
@@ -10,11 +10,11 @@ import { DataSource } from '@prisma/client';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
- selector: 'gf-asset-profile-icon',
- styleUrls: ['./asset-profile-icon.component.scss'],
- templateUrl: './asset-profile-icon.component.html'
+ selector: 'gf-entity-logo',
+ styleUrls: ['./entity-logo.component.scss'],
+ templateUrl: './entity-logo.component.html'
})
-export class GfAssetProfileIconComponent implements OnChanges {
+export class GfEntityLogoComponent implements OnChanges {
@Input() dataSource: DataSource;
@Input() size: 'large';
@Input() symbol: string;
diff --git a/libs/ui/src/lib/entity-logo/index.ts b/libs/ui/src/lib/entity-logo/index.ts
new file mode 100644
index 0000000000..9c5885208a
--- /dev/null
+++ b/libs/ui/src/lib/entity-logo/index.ts
@@ -0,0 +1 @@
+export * from './entity-logo.component';
diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.html b/libs/ui/src/lib/holdings-table/holdings-table.component.html
index dde1030775..2c238b1372 100644
--- a/libs/ui/src/lib/holdings-table/holdings-table.component.html
+++ b/libs/ui/src/lib/holdings-table/holdings-table.component.html
@@ -10,7 +10,7 @@
<ng-container matColumnDef="icon" sticky>
<th *matHeaderCellDef class="px-1" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell>
- <gf-asset-profile-icon
+ <gf-entity-logo
[dataSource]="element.dataSource"
[symbol]="element.symbol"
[tooltip]="element.name"
diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.ts b/libs/ui/src/lib/holdings-table/holdings-table.component.ts
index 747ff85816..ba744a09e4 100644
--- a/libs/ui/src/lib/holdings-table/holdings-table.component.ts
+++ b/libs/ui/src/lib/holdings-table/holdings-table.component.ts
@@ -4,7 +4,7 @@ import {
AssetProfileIdentifier,
PortfolioPosition
} from '@ghostfolio/common/interfaces';
-import { GfAssetProfileIconComponent } from '@ghostfolio/ui/asset-profile-icon';
+import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common';
@@ -32,7 +32,7 @@ import { Subject, Subscription } from 'rxjs';
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
CommonModule,
- GfAssetProfileIconComponent,
+ GfEntityLogoComponent,
GfSymbolModule,
GfValueComponent,
MatButtonModule,