chore(site): refactor pagination text (#11061)

This commit is contained in:
Bruno Quaresma
2023-12-06 12:19:29 -03:00
committed by GitHub
parent b376b2cd13
commit 43488b44ce
@@ -43,14 +43,13 @@ export const PaginationHeader: FC<PaginationHeaderProps> = ({
{totalRecords !== 0 && currentOffsetStart !== undefined && (
<div>
Showing {paginationUnitLabel}{" "}
Showing <strong>{currentOffsetStart}</strong> to{" "}
<strong>
{currentOffsetStart}&ndash;
{currentOffsetStart +
Math.min(limit - 1, totalRecords - currentOffsetStart)}
</strong>{" "}
(<strong>{totalRecords.toLocaleString()}</strong>{" "}
{paginationUnitLabel} total)
of <strong>{totalRecords.toLocaleString()}</strong>{" "}
{paginationUnitLabel}
</div>
)}
</>