fix: lint

This commit is contained in:
Julien Froidefond
2025-02-26 10:08:37 +01:00
parent 87ee57b0dd
commit 070960c90e
5 changed files with 2 additions and 11 deletions

View File

@@ -1,6 +1,4 @@
"use client";
import { usePreferences } from "@/contexts/PreferencesContext";
import { useEffect, useState } from "react";
import { usePathname } from "next/navigation";
import {

View File

@@ -2,7 +2,7 @@ import { HeroSection } from "./HeroSection";
import { MediaRow } from "./MediaRow";
import { KomgaBook, KomgaSeries } from "@/types/komga";
import { RefreshButton } from "@/components/library/RefreshButton";
import { BookOpenCheck, History, Sparkles, Clock, LibraryBig, BookOpen } from "lucide-react";
import { History, Sparkles, Clock, LibraryBig, BookOpen } from "lucide-react";
interface HomeData {
ongoing: KomgaSeries[];

View File

@@ -6,7 +6,6 @@ import { Cover } from "@/components/ui/cover";
import { MarkAsReadButton } from "@/components/ui/mark-as-read-button";
import { MarkAsUnreadButton } from "@/components/ui/mark-as-unread-button";
import { BookOfflineButton } from "@/components/ui/book-offline-button";
import { ProgressBar } from "@/components/ui/progress-bar";
import { useState, useEffect } from "react";
interface BookGridProps {

View File

@@ -1,5 +1,4 @@
import { AlertCircle } from "lucide-react";
import { cn } from "@/lib/utils";
interface ErrorMessageProps {
message: string;

View File

@@ -82,9 +82,4 @@ export const ERROR_CODES = {
},
} as const;
type ValueOf<T> = T[keyof T];
type ErrorCodeValues = ValueOf<{
[K in keyof typeof ERROR_CODES]: ValueOf<(typeof ERROR_CODES)[K]>;
}>;
export type ErrorCode = ErrorCodeValues;
export type ErrorCode = typeof ERROR_CODES[keyof typeof ERROR_CODES][keyof typeof ERROR_CODES[keyof typeof ERROR_CODES]];