Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-10 16:37:55 +07:00
parent 75ed8e233b
commit 8908395867
45 changed files with 2528 additions and 365 deletions
+3
View File
@@ -5,6 +5,8 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
import { NovelCard } from "@/components/novel-card"
import { prisma } from "@/lib/prisma"
export const dynamic = "force-dynamic"
export default async function SearchPage({
searchParams,
}: {
@@ -60,6 +62,7 @@ export default async function SearchPage({
const filteredNovels = await prisma.novel.findMany({
where,
orderBy,
take: 20,
})
const genres = await prisma.genre.findMany()