diff --git a/shared-module/src/components/Pagination.tsx b/shared-module/src/components/Pagination.tsx index 5e12df42ccc9..6ecc1760bc2f 100644 --- a/shared-module/src/components/Pagination.tsx +++ b/shared-module/src/components/Pagination.tsx @@ -123,6 +123,7 @@ const Pagination: React.FC @@ -133,7 +134,7 @@ const Pagination: React.FC + 1 , ) @@ -141,6 +142,7 @@ const Pagination: React.FC @@ -154,7 +156,7 @@ const Pagination: React.FC + {idx} , ) @@ -163,6 +165,7 @@ const Pagination: React.FC @@ -176,6 +179,7 @@ const Pagination: React.FC @@ -189,7 +193,7 @@ const Pagination: React.FC + {idx} , ) @@ -197,6 +201,7 @@ const Pagination: React.FC @@ -212,7 +217,11 @@ const Pagination: React.FC, ) } - components.push( {totalPages}) + components.push( + + {totalPages} + , + ) } else if (CAPACITY <= page && page <= totalPages - CAPACITY + 1) { components.push( 1 ) components.push( @@ -224,6 +233,7 @@ const Pagination: React.FC @@ -231,7 +241,10 @@ const Pagination: React.FC, ) components.push( - + {page} , ) @@ -239,6 +252,7 @@ const Pagination: React.FC @@ -254,6 +268,7 @@ const Pagination: React.FC @@ -265,6 +280,7 @@ const Pagination: React.FC @@ -272,14 +288,14 @@ const Pagination: React.FC, ) components.push( - + , ) for (let idx = totalPages - CAPACITY + 1; idx <= totalPages; idx++) { if (idx == page) { components.push( - + {idx} , ) @@ -288,6 +304,7 @@ const Pagination: React.FC diff --git a/shared-module/src/components/PaginationItemsPerPage.tsx b/shared-module/src/components/PaginationItemsPerPage.tsx index 6171429637a0..327f140c0a65 100644 --- a/shared-module/src/components/PaginationItemsPerPage.tsx +++ b/shared-module/src/components/PaginationItemsPerPage.tsx @@ -38,7 +38,7 @@ const PaginationItemsPerPage: React.FC = ({ paginat label={t("label-items-per-page")} id={"set-pagination-limit"} value={paginationInfo.limit.toString()} - onChange={(o) => { + onChangeByValue={(o) => { paginationInfo.setLimit(Number(o)) }} options={options}