diff --git a/src/components/reusable/Pagination.tsx b/src/components/reusable/Pagination.tsx index c7be302..13914f9 100644 --- a/src/components/reusable/Pagination.tsx +++ b/src/components/reusable/Pagination.tsx @@ -18,20 +18,25 @@ export function Pagination({ page, pageSize, total, onPage }: PaginationProps) { const safePage = Math.min(Math.max(page, 1), totalPages); const start = (safePage - 1) * pageSize; + const handlePageChange = (newPage: number) => { + onPage(newPage); + window.scrollTo({ top: 0, behavior: 'smooth' }); + }; + return ( -