adding logbook page totals
This commit is contained in:
@@ -60,7 +60,7 @@ const durationOfFlight: ColumnDef<ILogbookEntry> = {
|
|||||||
headerAlign: 'right'
|
headerAlign: 'right'
|
||||||
},
|
},
|
||||||
cell: (info: CellContext<ILogbookEntry, unknown>) =>
|
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) : ''
|
footer: (info) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : ''
|
||||||
}
|
}
|
||||||
const notes: ColumnDef<ILogbookEntry> = {
|
const notes: ColumnDef<ILogbookEntry> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user