refactor(frontend): remove ui.ts/icons.tsx and all rd-* legacy classes (B5)
This commit is contained in:
@@ -18,7 +18,7 @@ import { Cover } from "@/components/Cover";
|
||||
import { toast } from "@/components/Toaster";
|
||||
import { UploadButton } from "@/components/upload-button";
|
||||
import { ReadingStatsCard } from "@/components/reading-stats-card";
|
||||
import { formatBadge } from "@/components/ui";
|
||||
import { FormatBadge } from "@/components/format-badge";
|
||||
import {
|
||||
AlertDialog,
|
||||
AlertDialogAction,
|
||||
@@ -68,7 +68,7 @@ function BookCard({
|
||||
>
|
||||
<span className="relative block aspect-[3/4] overflow-hidden rounded-md border bg-muted shadow-sm transition group-hover:shadow-md group-hover:ring-2 group-hover:ring-accent/50">
|
||||
<Cover book={book} className="size-full" />
|
||||
<span className={formatBadge(book.format, "absolute left-1.5 top-1.5")}>{book.format}</span>
|
||||
<FormatBadge fmt={book.format} className="absolute left-1.5 top-1.5" />
|
||||
{book.state === "error" && (
|
||||
<span
|
||||
className="absolute right-1.5 top-1.5 flex items-center gap-1 rounded bg-destructive px-1.5 py-0.5 text-[10px] font-semibold text-destructive-foreground"
|
||||
|
||||
Reference in New Issue
Block a user