diff options
Diffstat (limited to 'modern/src/reports/TripReportPage.js')
-rw-r--r-- | modern/src/reports/TripReportPage.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 4b8f4d40..d2b4d9ef 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -18,6 +18,7 @@ import { useCatch, useEffectAsync } from '../reactHelper'; import useReportStyles from './common/useReportStyles'; import MapView from '../map/core/MapView'; import MapRoutePath from '../map/MapRoutePath'; +import AddressValue from '../common/components/AddressValue'; const columnsArray = [ ['startTime', 'reportStartTime'], @@ -103,6 +104,10 @@ const TripReportPage = () => { return formatHours(item[key]); case 'spentFuel': return formatVolume(item[key], volumeUnit, t); + case 'startAddress': + return (<AddressValue latitude={item.startLat} longitude={item.startLon} originalAddress={item[key]} />); + case 'endAddress': + return (<AddressValue latitude={item.endLat} longitude={item.endLon} originalAddress={item[key]} />); default: return item[key]; } |