doing some more mobile views to load more

This commit is contained in:
csawatzky 2025-05-26 13:21:42 -06:00
parent 3368a9112f
commit fde0eb731c
8 changed files with 68 additions and 37 deletions

View file

@ -369,6 +369,12 @@ export default function ContractTransactionTable(props: Props) {
total={tableData.length}
handleRowsPerPageChange={(e)=>{setPageSize(e.target.value)}}
setPage={(page)=>{setTablePage(page)}}
loadMore={()=>{
let clone: Transaction[] = cloneDeep(tableData)
let current = cloneDeep(displayData)
let newRows = clone.splice(current.length, pageSize)
setDisplayData(current.concat(newRows))
}}
/>
{/* <MaterialTable
title={"Deliveries"}