From 47ec1c3930ac7dface85df8745313bb93a4b2bf3 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Sun, 22 Dec 2024 12:03:48 -0700 Subject: [PATCH] Dashboard component uses app-book-card --- .../dashboard-scroller/dashboard-scroller.component.html | 8 +------- .../dashboard-scroller/dashboard-scroller.component.ts | 4 +++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.html b/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.html index e157b3350..81c03cb00 100644 --- a/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.html +++ b/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.html @@ -13,13 +13,7 @@ #scrollContainer [horizontal]="true">
- Cover of {{ book.metadata?.title }} -
-

{{ book.metadata?.title }}

-

{{ getAuthorNames(book) }}

- - -
+
diff --git a/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.ts b/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.ts index dfdf7c05a..8ac259472 100644 --- a/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.ts +++ b/booklore-ui/src/app/book/component/dashboard-scroller/dashboard-scroller.component.ts @@ -5,6 +5,7 @@ import {Button} from 'primeng/button'; import {InfiniteScrollDirective} from 'ngx-infinite-scroll'; import {NgForOf, NgIf} from '@angular/common'; import {Router} from '@angular/router'; +import {BookCardComponent} from '../book-card/book-card.component'; @Component({ selector: 'app-dashboard-scroller', @@ -14,7 +15,8 @@ import {Router} from '@angular/router'; Button, InfiniteScrollDirective, NgForOf, - NgIf + NgIf, + BookCardComponent ], }) export class DashboardScrollerComponent implements OnInit {