add relocate from violations-last-combined-cases to match-list
This commit is contained in:
@@ -37,11 +37,6 @@ export default function ViolationsLastCombinedCases() {
|
||||
sort_direction: 'desc'
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
console.log(dataCases);
|
||||
console.log(dataComplaint);
|
||||
}, [dataComplaint, dataCases])
|
||||
|
||||
const getCombinedItems = () => {
|
||||
const complaints = (dataComplaint?.content || []).map(item => ({
|
||||
...item,
|
||||
@@ -60,8 +55,8 @@ export default function ViolationsLastCombinedCases() {
|
||||
displayId: item.name,
|
||||
title: item.description,
|
||||
status: item.type,
|
||||
createdAt: item.createdAt,
|
||||
updatedAt: item.updatedAt,
|
||||
createdAt: item.created_at,
|
||||
updatedAt: item.updated_at,
|
||||
lawyer: item.lawyer,
|
||||
}));
|
||||
|
||||
@@ -219,12 +214,9 @@ export default function ViolationsLastCombinedCases() {
|
||||
)}
|
||||
</div>
|
||||
<Link
|
||||
href={`/pages/file/${item.displayId}`}
|
||||
href={`/pages/file/${item.file_id}?violationId=${item.violation_id}&caseType=${item.type}`}
|
||||
className="mt-auto"
|
||||
title={t('view')}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
}}
|
||||
>
|
||||
<IconEye />
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user