adding logbook page totals #89

Merged
noahspannbauer merged 3 commits from feature/81-add-totals-to-logbook-table into main 2025-05-16 11:14:28 -04:00
Showing only changes of commit b6be7a9d2c - Show all commits

View File

@@ -60,7 +60,7 @@ const durationOfFlight: ColumnDef<ILogbookEntry> = {
headerAlign: 'right'
},
cell: (info: CellContext<ILogbookEntry, unknown>) =>
info.getValue() ? parseFloat(info.getValue()).toFixed(1) : '',
info.getValue() ? parseFloat(info.getValue() as string).toFixed(1) : '',
footer: (info) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : ''
}
const notes: ColumnDef<ILogbookEntry> = {