fix pagination info for all tanstak-tables

This commit is contained in:
smanylov
2026-05-25 14:22:41 +07:00
parent 1a3f5277d9
commit 491adb4090
9 changed files with 17 additions and 10 deletions
@@ -232,7 +232,7 @@ export default function FilePageViolationsList({
className="sources-list-pagination"
>
<span>
{t('total-violations')}: {fileViolations?.total_elements} | {t('page')} {fileViolations?.current_page} {t('out-of')} {fileViolations?.total_pages}
{t('page')} <strong>{fileViolations?.current_page + 1} {t('out-of')} {fileViolations?.total_pages}</strong> | {t('total-violations')}: {fileViolations?.total_elements}
</span>
{fileViolations?.total_pages > 1 && (
<div className="pagination-controls">
@@ -47,6 +47,7 @@ export function TrackingHistoryView() {
refetch
} = useHistoryView(pagination.pageIndex, pagination.pageSize, locale, getSortParams.sortOrder, getSortParams.sortBy);
const totalElements = apiResponse?.totalElements || 0
const tableData = apiResponse?.history || [];
const totalPages = apiResponse?.totalPages || 0;
@@ -381,7 +382,7 @@ export function TrackingHistoryView() {
{t('page')}{' '}
<strong>
{pagination.pageIndex + 1} {t('out-of')} {totalPages || 1}
</strong>
</strong> | {t('total-document-openings')}: {totalElements}
</span>
</div>
@@ -270,7 +270,7 @@ export function ViolationsMyClaimsTable() {
{t('page')}{' '}
<strong>
{pagination.pageIndex + 1} {t('out-of')} {totalPages || 1}
</strong>
</strong> | {t('total-claims')}: {totalItems}
</span>
</div>
@@ -270,7 +270,7 @@ export function ViolationsMyComplaintsTable() {
{t('page')}{' '}
<strong>
{pagination.pageIndex + 1} {t('out-of')} {totalPages || 1}
</strong>
</strong> | {t('total-complaints')}: {totalItems}
</span>
</div>
+1 -1
View File
@@ -477,7 +477,7 @@ export default function ViolationsTable() {
{t('page')}{' '}
<strong>
{table.getState().pagination.pageIndex + 1} {t('out-of')} {violationData?.totalPages || 1}
</strong>
</strong> | {t('total-matches')}: {violationData?.totalElements}
</span>
</div>