diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 6 | ||||
-rw-r--r-- | modern/src/reports/NoRowsOverlay.js | 15 | ||||
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 6 | ||||
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/TripReportPage.js | 4 |
6 files changed, 2 insertions, 37 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index a80825e..ade1b45 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -5,10 +5,9 @@ import { } from '@material-ui/core'; import { useTheme } from '@material-ui/core/styles'; import { useSelector } from 'react-redux'; -import { formatDate, formatPosition } from '../common/formatter'; +import { formatDate } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; -import NoRowsOverlay from './NoRowsOverlay'; import { prefixString } from '../common/stringUtils'; import { useTranslation } from '../LocalizationProvider'; @@ -163,9 +162,6 @@ const EventReportPage = () => { <DataGrid rows={items.events} columns={columns} - components={{ - NoRowsOverlay: NoRowsOverlay, - }} hideFooter autoHeight /> diff --git a/modern/src/reports/NoRowsOverlay.js b/modern/src/reports/NoRowsOverlay.js deleted file mode 100644 index 9fe53b1..0000000 --- a/modern/src/reports/NoRowsOverlay.js +++ /dev/null @@ -1,15 +0,0 @@ -import React, { useState } from 'react'; -import { Typography } from '@material-ui/core'; -import { GridOverlay } from '@material-ui/data-grid'; -import { useTranslation } from '../LocalizationProvider'; - -const NoRowsOverlay = () => { - const t = useTranslation(); - return ( - <GridOverlay> - <Typography>{t('sharedNoRows')}</Typography> - </GridOverlay> - ); -} - -export default NoRowsOverlay; diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 3a2ea6a..361e7c0 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -7,7 +7,6 @@ import { } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; -import NoRowsOverlay from './NoRowsOverlay'; import { useAttributePreference, usePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -98,9 +97,6 @@ const RouteReportPage = () => { <DataGrid rows={items} columns={columns} - components={{ - NoRowsOverlay: NoRowsOverlay, - }} hideFooter autoHeight /> diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 42a3c66..ab1f299 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -2,11 +2,10 @@ import React, { useState } from 'react'; import { DataGrid } from '@material-ui/data-grid'; import { useTheme } from '@material-ui/core/styles'; import { - formatDistance, formatHours, formatDate, formatVolume, formatPosition, + formatDistance, formatHours, formatDate, formatVolume, } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; -import NoRowsOverlay from './NoRowsOverlay'; import { useAttributePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -90,9 +89,6 @@ const StopReportPage = () => { <DataGrid rows={items} columns={columns} - components={{ - NoRowsOverlay: NoRowsOverlay - }} hideFooter autoHeight getRowId={() => Math.random()} diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 28b9db5..2199d49 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -7,7 +7,6 @@ import { } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; -import NoRowsOverlay from './NoRowsOverlay'; import { useAttributePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -111,9 +110,6 @@ const SummaryReportPage = () => { <DataGrid rows={items} columns={columns} - components={{ - NoRowsOverlay: NoRowsOverlay - }} hideFooter autoHeight getRowId={() => Math.random()} diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index e47c072..f2cffc2 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -6,7 +6,6 @@ import { } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; -import NoRowsOverlay from './NoRowsOverlay'; import { useAttributePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -121,9 +120,6 @@ const TripReportPage = () => { <DataGrid rows={items} columns={columns} - components={{ - NoRowsOverlay: NoRowsOverlay, - }} hideFooter autoHeight getRowId={() => Math.random()} |