Fixing nextjs linting shenanigans, fixed datetime, remove random Ad.patreon remove logs
This commit is contained in:
@@ -32,7 +32,6 @@ export async function fetchFromAPI<T>(
|
||||
throw new Error(errorData.message || `API fetch error (status: ${response.status})`);
|
||||
}
|
||||
const responseJson = await response.json();
|
||||
console.log(responseJson)
|
||||
return responseJson;
|
||||
} catch (error) {
|
||||
console.error("Fetch error:", error);
|
||||
|
||||
@@ -5,7 +5,7 @@ export interface Chapter {
|
||||
number: number;
|
||||
title: string;
|
||||
editor?: Editor;
|
||||
release_date: string;
|
||||
release_datetime: string;
|
||||
content: string;
|
||||
book?: Book;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ export interface Book {
|
||||
raw_author: string;
|
||||
cover: Media[] | null;
|
||||
description: string;
|
||||
release_date: string;
|
||||
release_datetime: string;
|
||||
chapters: Chapter[];
|
||||
glossary: Glossary;
|
||||
}
|
||||
|
||||
@@ -3,5 +3,8 @@ export function formatDateToMonthDayYear(date: Date): string {
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
hour: "numeric",
|
||||
minute: "numeric",
|
||||
timeZoneName: "short",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user