aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modern/src/reports/EventReportPage.js6
-rw-r--r--modern/src/reports/NoRowsOverlay.js15
-rw-r--r--modern/src/reports/RouteReportPage.js4
-rw-r--r--modern/src/reports/StopReportPage.js6
-rw-r--r--modern/src/reports/SummaryReportPage.js4
-rw-r--r--modern/src/reports/TripReportPage.js4
-rw-r--r--web/l10n/en.json1
-rw-r--r--web/l10n/es.json1
8 files changed, 2 insertions, 39 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()}
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 91a3de7..6821be2 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -84,7 +84,6 @@
"sharedAlarms": "Alarms",
"sharedLocation": "Location",
"sharedImport": "Import",
- "sharedNoRows": "No rows",
"sharedSelectedOptions": "{0} selected options",
"attributeSpeedLimit": "Speed Limit",
"attributePolylineDistance": "Polyline Distance",
diff --git a/web/l10n/es.json b/web/l10n/es.json
index 6497b9b..ff27682 100644
--- a/web/l10n/es.json
+++ b/web/l10n/es.json
@@ -84,7 +84,6 @@
"sharedAlarms": "Alarmas",
"sharedLocation": "Ubicación",
"sharedImport": "Import",
- "sharedNoRows": "No hay filas",
"sharedSelectedOptions": "{0} opciones seleccionadas",
"attributeSpeedLimit": "Límite de velocidad",
"attributePolylineDistance": "Distancia de polilínea",