From 75753ca3965286309f8f1335366b47bf6dbb3b07 Mon Sep 17 00:00:00 2001
From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com>
Date: Wed, 21 Jan 2026 12:35:10 +0100
Subject: [PATCH 01/17] 6521: Started work on upgrade. Replaced pagination
because of compatibility issues
---
.../components/util/paginate/pagination.jsx | 52 +-
assets/admin/translations/da/common.json | 5 +-
package-lock.json | 1069 +++++++++--------
package.json | 14 +-
vite.config.js | 4 +-
5 files changed, 589 insertions(+), 555 deletions(-)
diff --git a/assets/admin/components/util/paginate/pagination.jsx b/assets/admin/components/util/paginate/pagination.jsx
index 56c4332fc..b4177fe99 100644
--- a/assets/admin/components/util/paginate/pagination.jsx
+++ b/assets/admin/components/util/paginate/pagination.jsx
@@ -17,49 +17,19 @@ function Pagination({ itemsCount, pageSize, onPageChange, currentPage }) {
// No need for pagination
if (pageCount <= 1) return null;
- /**
- * A function to align pagination data with the data we need, our pages are
- * not 0-indexed.
- *
- * @param {object} props - The props.
- * @param {Array} props.selected The selected page
- */
- const changePage = ({ selected }) => {
- onPageChange(selected + 1);
+ const nextPage = () => {
+ onPageChange(currentPage + 1);
};
- return (
-