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 && (
|
{totalRecords !== 0 && currentOffsetStart !== undefined && (
|
||||||
<div>
|
<div>
|
||||||
Showing {paginationUnitLabel}{" "}
|
Showing <strong>{currentOffsetStart}</strong> to{" "}
|
||||||
<strong>
|
<strong>
|
||||||
{currentOffsetStart}–
|
|
||||||
{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>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user