Skip to content

Commit 5d74acf

Browse files
committed
fix(node-filters): remove translation for pagination item display
1 parent d54c5ce commit 5d74acf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

dashboard/src/components/nodes/node-filters.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ interface NodePaginationControlsProps {
110110
}
111111

112112
export const NodePaginationControls = ({ currentPage, totalPages, totalNodes, isLoading, onPageChange }: NodePaginationControlsProps) => {
113-
const { t } = useTranslation()
114113
const dir = useDirDetection()
115114

116115
const getPaginationRange = (currentPage: number, totalPages: number) => {
@@ -156,14 +155,9 @@ export const NodePaginationControls = ({ currentPage, totalPages, totalNodes, is
156155
}
157156

158157
const paginationRange = getPaginationRange(currentPage, totalPages)
159-
const startItem = totalNodes === 0 ? 0 : currentPage * 15 + 1
160-
const endItem = Math.min((currentPage + 1) * 15, totalNodes)
161158

162159
return (
163160
<div className="mt-4 flex flex-col-reverse items-center justify-between gap-4 md:flex-row">
164-
<div className="text-sm text-muted-foreground">
165-
{t('showing')} {startItem}-{endItem} {t('of')} {totalNodes}
166-
</div>
167161

168162
<Pagination dir="ltr" className={`${dir === 'rtl' ? 'flex-row-reverse' : ''}`}>
169163
<PaginationContent className={cn('w-full justify-center overflow-x-auto', dir === 'rtl' ? 'md:justify-start' : 'md:justify-end')}>

0 commit comments

Comments
 (0)