fix: mobile MailList props for infinite scroll

This commit is contained in:
Agent Zero
2026-07-30 13:39:36 +02:00
parent cfeac52058
commit 78724ce8f1
+6 -11
View File
@@ -959,24 +959,19 @@ export function MailPage() {
</button>
</div>
<MailList
mails={mails}
mails={processedMails}
selectedMailId={selectedMail?.id || null}
onSelectMail={handleSelectMail}
loading={loadingMails}
currentPage={mailsPage}
total={mailsTotal}
pageSize={PAGE_SIZE}
onPageChange={setMailsPage}
selectedMailIds={selectedMailIds}
onToggleSelect={handleToggleSelect}
onSelectAll={handleSelectAll}
sortBy={sortBy}
sortOrder={sortOrder}
onSortChange={(by, order) => {
setSortBy(by);
setSortOrder(order);
setMailsPage(1);
onLoadMore={() => {
if (mails.length < mailsTotal) {
setMailsPage((p) => p + 1);
}
}}
hasMore={mails.length < mailsTotal}
/>
</div>
)}