From e08bc624d263a8fe9531729e603e3cc59e824e31 Mon Sep 17 00:00:00 2001 From: Benjamin Arias Date: Thu, 16 Mar 2023 13:01:40 +0100 Subject: [PATCH] fix: Pagination button --- site/source/pages/statistiques/DemandesUtilisateurs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/source/pages/statistiques/DemandesUtilisateurs.tsx b/site/source/pages/statistiques/DemandesUtilisateurs.tsx index 1ce376d71..60ab30205 100644 --- a/site/source/pages/statistiques/DemandesUtilisateurs.tsx +++ b/site/source/pages/statistiques/DemandesUtilisateurs.tsx @@ -103,7 +103,7 @@ function Pagination({ items }: PaginationProps) { {[...Array(Math.ceil(items.length / 10)).keys()].map((i) => (
  • setCurrentPage(i)} + onPress={() => setCurrentPage(i)} currentPage={currentPage === i} aria-selected={currentPage === i ? true : undefined} aria-current={currentPage === i ? 'page' : undefined} @@ -146,6 +146,7 @@ function formatMonth(date: string | Date) { type PagerButtonProps = { currentPage: boolean + onPress: () => void } const PagerButton = styled.button`