added the cable estimator and the pdf stuff that goes with it
This commit is contained in:
parent
9074120f74
commit
e039a75bf8
26 changed files with 3157 additions and 24 deletions
|
|
@ -22,16 +22,8 @@ export default function TransactionViewer(props: Props) {
|
|||
const [pageSize, setPageSize] = useState(10)
|
||||
|
||||
useEffect(()=>{
|
||||
// let rows: Transaction[] = []
|
||||
// transactions.forEach((transaction, index) => {
|
||||
// if (index >= tablePage * pageSize && index < (tablePage + 1) * pageSize){
|
||||
// rows.push(transaction)
|
||||
// }
|
||||
// })
|
||||
let clone: Transaction[] = cloneDeep(transactions)
|
||||
let rows = clone.splice(tablePage * pageSize, pageSize)
|
||||
console.log(transactions)
|
||||
console.log(rows)
|
||||
setDisplayedRows(rows)
|
||||
},[transactions, tablePage, pageSize])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue