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 && ( {totalRecords !== 0 && currentOffsetStart !== undefined && (
<div> <div>
Showing {paginationUnitLabel}{" "} Showing <strong>{currentOffsetStart}</strong> to{" "}
<strong> <strong>
{currentOffsetStart}&ndash;
{currentOffsetStart + {currentOffsetStart +
Math.min(limit - 1, totalRecords - currentOffsetStart)} Math.min(limit - 1, totalRecords - currentOffsetStart)}
</strong>{" "} </strong>{" "}
(<strong>{totalRecords.toLocaleString()}</strong>{" "} of <strong>{totalRecords.toLocaleString()}</strong>{" "}
{paginationUnitLabel} total) {paginationUnitLabel}
</div> </div>
)} )}
</> </>