diff --git a/webui/src/features/mail/MailboxPage.tsx b/webui/src/features/mail/MailboxPage.tsx index 85574b1..247ee79 100644 --- a/webui/src/features/mail/MailboxPage.tsx +++ b/webui/src/features/mail/MailboxPage.tsx @@ -1,7 +1,8 @@ import { useEffect, useMemo, useRef, useState } from "react"; -import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, Home, Mail, Paperclip, RefreshCw, Search, X } from "lucide-react"; +import { ChevronRight, Home, Mail, Paperclip, RefreshCw, Search, X } from "lucide-react"; import { Button, + DataGridPaginationBar, DismissibleAlert, ExplorerTree, LoadingIndicator, @@ -474,10 +475,12 @@ export default function MailboxPage({ settings }: {settings: ApiSettings;}) { })} - @@ -521,31 +524,6 @@ export default function MailboxPage({ settings }: {settings: ApiSettings;}) { } -function MailboxPagination({ page, pageSize, totalRows, disabled, onPageChange, onPageSizeChange }: {page: number;pageSize: number;totalRows: number;disabled: boolean;onPageChange: (page: number) => void;onPageSizeChange: (pageSize: number) => void;}) { - const pageCount = Math.max(1, Math.ceil(totalRows / pageSize)); - const first = totalRows === 0 ? 0 : (page - 1) * pageSize + 1; - const last = Math.min(totalRows, page * pageSize); - const options = [10, 25, 50, 100]; - return ( -
-
{first}-{last} of {totalRows}
- -
- - - i18n:govoplan-mail.page.fb06270f {page} of {pageCount} - - -
-
); - -} - function mailboxMessageKey(folder: string, uid: string): string { return `${folder || "INBOX"}::${uid}`; }