add dropDown filter for matched list
This commit is contained in:
@@ -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 />
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user