feat: use map instead of interface

This commit is contained in:
2024-07-14 23:50:16 +03:00
parent 5a4206a81e
commit 45389364ff
4 changed files with 21 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
<h3>{{ currentChapterInfo?.number }}. {{ currentChapterInfo?.name || "Нет названия" }}</h3>
</div>
<div class="flex flex-col items-center">
@if (pages.length > 0 && cachedPages[currentPageIndex]) {
@if (pages.length > 0 && cachedPages.get(currentPageIndex)) {
<div [class]="imageContainerClass">
@if (!isManhwa$.value) {
<app-scale-image [imageSrc]="imageUrl"></app-scale-image>