fix: lint
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
"use client";
|
||||
|
||||
import { usePreferences } from "@/contexts/PreferencesContext";
|
||||
import { useEffect, useState } from "react";
|
||||
import { usePathname } from "next/navigation";
|
||||
import {
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { AlertCircle } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface ErrorMessageProps {
|
||||
message: string;
|
||||
|
||||
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user