add dropDown filter for matched list

This commit is contained in:
smanylov
2026-03-27 17:22:09 +07:00
parent f4a0222e0e
commit 11d65410e6
5 changed files with 67 additions and 15 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ export interface FileDetails {
interface PageProps {
params: Promise<{ id: string }>;
searchParams: Promise<{ page?: string }>; // Добавляем searchParams
searchParams: Promise<{ page?: string, status?: string }>;
}
export default async function Page({
@@ -56,7 +56,7 @@ export default async function Page({
searchParams
}: PageProps) {
const { id } = await params;
const { page } = await searchParams;
const { page, status } = await searchParams;
const currentPage = Number(page) || 1;
try {
@@ -76,6 +76,7 @@ export default async function Page({
<div>
<FilePageViolationsList
currentPage={currentPage}
status={status}
fileId={id}
/>
<FilePageNote />
@@ -89,6 +90,5 @@ export default async function Page({
return (
<FilePageNotFound />
)
}
}