set desc true on disbursement table list

This commit is contained in:
Wikzyy
2025-05-21 16:18:50 +07:00
parent 493344802a
commit 882fb840f3
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const HistoryTransactionDisbursement = () => {
</Link>
<Link underline="none" color="inherit">
<span className="text-sm">History Disbursement</span>
<span className="text-sm">Disbursement</span>
</Link>
</Breadcrumbs>
<div className="grid gap-5 lg:gap-7.5">

View File

@ -285,7 +285,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
pagination={{ size: 10 }}
toolbar={<ListToolbar />}
layout={{ card: true }}
sorting={[{ id: 'execution_date', desc: false }]}
sorting={[{ id: 'execution_date', desc: true }]}
serverSide={true}
onFetchData={({ pageIndex, pageSize, sorting, columnFilters }) =>
getTransactionLists(pageIndex, pageSize, sorting, columnFilters)