mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): refactor pagination text (#11061)
This commit is contained in:
@@ -43,14 +43,13 @@ export const PaginationHeader: FC<PaginationHeaderProps> = ({
|
||||
|
||||
{totalRecords !== 0 && currentOffsetStart !== undefined && (
|
||||
<div>
|
||||
Showing {paginationUnitLabel}{" "}
|
||||
Showing <strong>{currentOffsetStart}</strong> to{" "}
|
||||
<strong>
|
||||
{currentOffsetStart}–
|
||||
{currentOffsetStart +
|
||||
Math.min(limit - 1, totalRecords - currentOffsetStart)}
|
||||
</strong>{" "}
|
||||
(<strong>{totalRecords.toLocaleString()}</strong>{" "}
|
||||
{paginationUnitLabel} total)
|
||||
of <strong>{totalRecords.toLocaleString()}</strong>{" "}
|
||||
{paginationUnitLabel}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user