added the cable estimator and the pdf stuff that goes with it

This commit is contained in:
csawatzky 2025-04-09 14:49:04 -06:00
parent 9074120f74
commit e039a75bf8
26 changed files with 3157 additions and 24 deletions

View file

@ -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])