update useFileViolations
This commit is contained in:
@@ -21,7 +21,7 @@ export default function FilePageViolationsList({
|
||||
const router = useRouter();
|
||||
const pathname = usePathname();
|
||||
const [selectedViolation, setSelectedViolation] = useState<ViolationFileDetail | null>(null);
|
||||
const { data: fileViolations } = useFileViolations(fileId, currentPage);
|
||||
const { data: fileViolations } = useFileViolations(fileId, currentPage, '');
|
||||
|
||||
if (!fileViolations?.violations) {
|
||||
return null;
|
||||
@@ -78,12 +78,6 @@ export default function FilePageViolationsList({
|
||||
selectHandler(item);
|
||||
}}
|
||||
>
|
||||
{/* <div className="source-header">
|
||||
<div className="source-image">
|
||||
<img src={item.url} alt="" />
|
||||
</div>
|
||||
|
||||
</div> */}
|
||||
<div
|
||||
className="source-header-left"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user