remove pagination blink
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "no-copy-frontend",
|
"name": "no-copy-frontend",
|
||||||
"version": "0.62.0",
|
"version": "0.63.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 2999",
|
"dev": "next dev -p 2999",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
|
import Link from 'next/link';
|
||||||
import { useRouter, usePathname } from 'next/navigation';
|
import { useRouter, usePathname } from 'next/navigation';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
@@ -43,6 +44,10 @@ export default function ViolationPageViolationsList({
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log(fileViolations);
|
||||||
|
}, [fileViolations]);
|
||||||
|
|
||||||
const handlePageChange = (page: number) => {
|
const handlePageChange = (page: number) => {
|
||||||
router.push(`${pathname}?page=${page}`);
|
router.push(`${pathname}?page=${page}`);
|
||||||
};
|
};
|
||||||
@@ -96,13 +101,14 @@ export default function ViolationPageViolationsList({
|
|||||||
<span>{item.host}</span>
|
<span>{item.host}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="source-actions">
|
<div className="source-actions">
|
||||||
<a
|
<Link
|
||||||
href={item.page_url}
|
href={item.page_url}
|
||||||
className="btn-small btn-primary-small"
|
className="btn-small btn-primary-small"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
scroll={false}
|
||||||
>
|
>
|
||||||
{t('open')}
|
{t('open')}
|
||||||
</a>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user