feat: Update DataTable component to streamline props and enhance sorting icons

This commit is contained in:
Marco Beretta 2025-09-09 23:48:40 +02:00
parent cf2d35fd32
commit 780e6a4766
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
2 changed files with 54 additions and 40 deletions

View file

@ -287,15 +287,15 @@ export default function ArchivedChatsTable() {
<DataTable
columns={columns}
data={allConversations}
isLoading={isLoading}
enableSearch={!!isSearchEnabled}
filterColumn="title"
onFilterChange={onFilterChange}
filterValue={searchInput}
fetchNextPage={handleFetchNextPage}
hasNextPage={hasNextPage}
isFetchingNextPage={isFetchingNextPage}
isLoading={isLoading}
showCheckboxes={false}
enableSearch={!!isSearchEnabled}
onSortChange={handleSort}
sortBy={sortBy}
sortDirection={sortDirection}