add start-end-date range for match list and fix pagination
This commit is contained in:
@@ -17,13 +17,17 @@ export default function FilePageViolationsList({
|
||||
fileId,
|
||||
status,
|
||||
violationId,
|
||||
caseType
|
||||
caseType,
|
||||
startDate,
|
||||
endDate
|
||||
}: {
|
||||
currentPage: number,
|
||||
fileId: string,
|
||||
status: string | undefined,
|
||||
violationId?: string | undefined
|
||||
caseType?: 'claim' | 'complaint'
|
||||
violationId?: string | undefined,
|
||||
caseType?: 'claim' | 'complaint',
|
||||
startDate?: string,
|
||||
endDate?: string
|
||||
}) {
|
||||
const t = useTranslations('Global');
|
||||
const tStatus = useTranslations('Match-status');
|
||||
@@ -38,7 +42,7 @@ export default function FilePageViolationsList({
|
||||
current_page: number;
|
||||
} | null>(null);
|
||||
|
||||
const { data: fileViolations, error, isPending } = useFileViolations(fileId, currentPage, status, violationId);
|
||||
const { data: fileViolations, error, isPending } = useFileViolations(fileId, currentPage, status, violationId, startDate, endDate);
|
||||
|
||||
function selectHandler(violation: ViolationFileDetail) {
|
||||
setSelectedViolation(violation);
|
||||
|
||||
Reference in New Issue
Block a user