fix: mobile MailList props for infinite scroll
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user