diff --git a/apps/web/src/app/shared/components/content-card/content-card.component.ts b/apps/web/src/app/shared/components/content-card/content-card.component.ts index 9ee4049ed..85f4f8217 100644 --- a/apps/web/src/app/shared/components/content-card/content-card.component.ts +++ b/apps/web/src/app/shared/components/content-card/content-card.component.ts @@ -27,8 +27,8 @@ export class ContentCardComponent { /** Content type (live, movie, series) */ readonly type = input(); - /** Optional date to display */ - readonly date = input(); + /** Optional date to display (Date, string, or timestamp number) */ + readonly date = input(); /** Whether to show the remove button */ readonly showRemoveButton = input(false); diff --git a/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.html b/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.html index 906c9983c..b5db4263c 100644 --- a/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.html +++ b/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.html @@ -6,13 +6,13 @@

{{ 'PORTALS.SIDEBAR.MOVIES' | translate }}

@@ -24,13 +24,13 @@

{{ 'PORTALS.SIDEBAR.SERIES' | translate }}

@@ -42,13 +42,13 @@

{{ 'PORTALS.SIDEBAR.LIVE_TV' | translate }}

diff --git a/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.ts b/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.ts index da5c30ae4..b1a076dd7 100644 --- a/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.ts +++ b/apps/web/src/app/xtream-tauri/recently-added/recently-added.component.ts @@ -1,8 +1,7 @@ -import { DatePipe } from '@angular/common'; import { Component, computed, inject } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { TranslatePipe } from '@ngx-translate/core'; -import { SearchResultItemComponent } from '../../shared/components/search-result-item/search-result-item.component'; +import { ContentCardComponent } from '../../shared/components/content-card/content-card.component'; import { XtreamStore } from '../stores/xtream.store'; import { ContentType } from '../xtream-state'; @@ -10,7 +9,7 @@ import { ContentType } from '../xtream-state'; selector: 'app-recently-added', templateUrl: './recently-added.component.html', styleUrls: ['./recently-added.component.scss'], - imports: [DatePipe, SearchResultItemComponent, TranslatePipe], + imports: [ContentCardComponent, TranslatePipe], }) export class RecentlyAddedComponent { private readonly xtreamStore = inject(XtreamStore);