From 61eec0cd0e04772f784bfc0cbc4998b57c8f33f8 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 10 Mar 2025 01:18:37 +0100 Subject: [PATCH] Add "last read timestamp" to history chapter card --- src/modules/history/components/ChapterHistoryCard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/history/components/ChapterHistoryCard.tsx b/src/modules/history/components/ChapterHistoryCard.tsx index 2f593dee..62044705 100644 --- a/src/modules/history/components/ChapterHistoryCard.tsx +++ b/src/modules/history/components/ChapterHistoryCard.tsx @@ -28,6 +28,7 @@ import { requestManager } from '@/lib/requests/RequestManager.ts'; import { makeToast } from '@/modules/core/utils/Toast.ts'; import { getErrorMessage } from '@/lib/HelperFunctions.ts'; import { Chapters } from '@/modules/chapter/services/Chapters.ts'; +import { epochToDate, timeFormatter } from '@/util/DateHelper.ts'; export const ChapterHistoryCard = memo(({ chapter }: { chapter: ChapterHistoryListFieldsFragment }) => { const { manga } = chapter; @@ -108,7 +109,7 @@ export const ChapterHistoryCard = memo(({ chapter }: { chapter: ChapterHistoryLi {manga.title} - {chapter.name} + {`${chapter.name} — ${timeFormatter.format(epochToDate(Number(chapter.lastReadAt)).valueOf())}`}