diff --git a/webapp-backoffice/src/pages/administration/dashboard/products.tsx b/webapp-backoffice/src/pages/administration/dashboard/products.tsx index a99172a9a..2ca493199 100644 --- a/webapp-backoffice/src/pages/administration/dashboard/products.tsx +++ b/webapp-backoffice/src/pages/administration/dashboard/products.tsx @@ -128,10 +128,14 @@ const DashBoard = () => { }; const nbPages = getNbPages(productsCount, numberPerPage); + const firstItemDisplayed = numberPerPage * (filters.currentPage - 1) + 1; + const lastItemDisplayed = + numberPerPage * (filters.currentPage - 1) + products.length; + const totalItems = productsResult.metadata.count; const headTitle = () => { return search - ? `Résultat de la recherche «${search}» pour l'organisation «${inputValue}» | Démarches | Je donne mon avis` + ? `Résultat de la recherche «${search}» pour l'organisation «${inputValue}» | Démarches | Je donne mon avis` : 'Services | Je donne mon avis'; }; @@ -474,27 +478,32 @@ const DashBoard = () => { ) : (
-
+ )} + >
- Avis de{' '} - - {numberPerPage * (filters.currentPage - 1) + 1} - {' '} - à{' '} - - {numberPerPage * (filters.currentPage - 1) + products.length} - {' '} - sur{' '} - - {productsResult.metadata.count} - +

+ Avis de {firstItemDisplayed} à {lastItemDisplayed} sur{' '} + {totalItems} +

+